Skip to content

ci: wrong action

ci: wrong action #16

Workflow file for this run

on: push
name: build and upload artifacts
jobs:
build:
name: Build - ${{ matrix.platform.os }} ${{ matrix.arch }}
strategy:
matrix:
platform:
- os: linux
target_suffix: -unknown-linux-gnu
output: libvenbind.so
arch: [x86_64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v26
- uses: cachix/cachix-action@v14
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Build
shell: devenv shell bash -- -e {0}
run: |
cargo build --release --target ${{ matrix.arch }}${{ matrix.platform.target_suffix }}
mkdir dist
cp ./target/${{ matrix.arch }}${{ matrix.platform.target_suffix }}/release/${{ matrix.platform.output }} ./dist/venbind-${{ matrix.platform.os }}-${{ matrix.arch }}.node
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.os }}-${{ matrix.arch }}
path: ./dist/venbind-${{ matrix.platform.os }}-${{ matrix.arch }}.node