From ec2550eca6a5732a1d2707634e81d02c9661c208 Mon Sep 17 00:00:00 2001 From: xenia Date: Sun, 4 Feb 2024 11:30:33 +0100 Subject: [PATCH] Update GitHub workflow to use nix --- .github/workflows/tools-unstable-linux.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tools-unstable-linux.yml b/.github/workflows/tools-unstable-linux.yml index 332624f..a3944be 100644 --- a/.github/workflows/tools-unstable-linux.yml +++ b/.github/workflows/tools-unstable-linux.yml @@ -12,19 +12,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + - uses: cachix/install-nix-action@v22 with: - toolchain: stable - override: true + github_access_token: ${{ secrets.GITHUB_TOKEN }} - name: Build - working-directory: gfx2inc - run: cargo build --release + run: nix build -L .#gfx2inc + + - name: Patch + run: nix run nixpkgs#patchelf -- result/bin/gfx2inc --set-interpreter /lib64/ld-linux-x86-64.so.2 --output gfx2inc/gfx2in - name: Upload artifact uses: actions/upload-artifact@v3 with: name: gfx2inc - path: gfx2inc/target/release/gfx2inc + path: gfx2inc/gfx2inc