Skip to content

Commit

Permalink
Fix linux64 task
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamVenner committed Jul 11, 2024
1 parent f1b46b1 commit c64e116
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ jobs:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true
- uses: actions/checkout@v1
- name: "Install Rust"
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-host x86_64-unknown-linux-gnu -y
- name: Build
run: cargo build --verbose --bin gluac --features parking_lot --target x86_64-unknown-linux-gnu --release
run: |
source $HOME/.cargo/env
cargo build --verbose --bin gluac --features parking_lot --target x86_64-unknown-linux-gnu --release
- name: Strip debug info
run: strip target/x86_64-unknown-linux-gnu/release/gluac
- name: Make dir
run: mkdir target/x86_64-unknown-linux-gnu/release/releasedir
- name: Rename binary
run: mv target/x86_64-unknown-linux-gnu/release/gluac target/x86_64-unknown-linux-gnu/release/gluac_linux64
run: mv target/x86_64-unknown-linux-gnu/release/gluac target/x86_64-unknown-linux-gnu/release/releasedir/gluac_linux64
- name: Release
uses: softprops/action-gh-release@v1
with:
files: target/x86_64-unknown-linux-gnu/release/gluac_linux64
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: target/x86_64-unknown-linux-gnu/release/releasedir
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_linux32:
Expand Down

0 comments on commit c64e116

Please sign in to comment.