Update GitHub workflow to use nix
This commit is contained in:
parent
efec592b0d
commit
4d87b29467
15
.github/workflows/tools-unstable-linux.yml
vendored
15
.github/workflows/tools-unstable-linux.yml
vendored
|
@ -12,19 +12,18 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v22
|
||||||
- name: Install Rust toolchain
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: gfx2inc
|
run: nix build -L .#gfx2inc
|
||||||
run: cargo build --release
|
|
||||||
|
- name: Patch
|
||||||
|
run: nix run nixpkgs#patchelf -- result/bin/gfx2inc --set-interpreter /lib64/ld-linux-x86-64.so.2 --output gfx2inc
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: gfx2inc
|
name: gfx2inc
|
||||||
path: gfx2inc/target/release/gfx2inc
|
path: gfx2inc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user