Skip to content

Commit

Permalink
update restop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aeghn committed Nov 24, 2024
1 parent 9430f1d commit d51b5a5
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/restop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,39 @@ jobs:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2010_x86_64
steps:
- name: Setup Config
id: config
- name: Show GLIBC
run: ldd --version
- name: Checkout sources
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.sha || env.GITHUB_SHA }}

- name: Set env on push
if: github.event_name == 'push'
run: |
echo ::set-output name=SOURCE_TAG::${GITHUB_REF/refs\/tags\//}
echo ::set-output name=TARGET_NAME::x86_64-unknown-linux-musl
- uses: actions/checkout@v1
- name: Build
echo "INPUT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "INPUT_TAG=$(git tag --points-at HEAD)" >> $GITHUB_ENV
- name: Set env on trigger
if: github.event_name == 'workflow_dispatch'
run: |
yum install -y gcc gcc-c++
curl https://sh.rustup.rs -sSf | bash -s -- -y
. $HOME/.cargo/env
cargo build --release
echo "INPUT_SHA=${{ github.event.inputs.sha }}" >> $GITHUB_ENV
echo "INPUT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v1

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Process and Package
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
env:
Expand Down

0 comments on commit d51b5a5

Please sign in to comment.