Compare commits

...

5 Commits

Author SHA1 Message Date
96e1bf0808 Add patching phase to make binary run on non-nixos 2024-02-03 15:39:19 +01:00
bff644b664 Upload artifact 2024-02-03 12:58:58 +01:00
6006d366c2 test nix actions? 2024-02-03 12:56:27 +01:00
672c88559c mjau 2024-02-03 12:48:54 +01:00
c9c40cdc1c Enable github actions for github-actions branch 2024-02-03 12:47:20 +01:00

View File

@ -3,27 +3,29 @@ on:
push: push:
branches: branches:
- main - main
- github-actions
name: fox32asm Unstable - Linux name: fox32asm Unstable - Linux
jobs: jobs:
fox32asm-unstable-linux: fox32asm-nix:
name: Build name: Build
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
run: cargo build --release run: nix build -L .#fox32asm
- name: Upload artifact - name: Patch
run: nix run nixpkgs#patchelf -- result/bin/fox32asm --set-interpreter /lib64/ld-linux-x86-64.so.2 --output fox32asm
- name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: fox32asm name: fox32asm
path: target/release/fox32asm path: fox32asm