Skip to content

Commit

Permalink
ci: fix build.yml
Browse files Browse the repository at this point in the history
apparently target was completely ignored :P
  • Loading branch information
tuxinal committed Aug 15, 2024
1 parent c728e8c commit 650325d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ name: build and upload artifacts

jobs:
build:
name: Build - ${{ matrix.platform.name }}
name: Build - ${{ matrix.platform.os }} ${{ matrix.arch }}
strategy:
matrix:
platform:
- name: Linux ${{ matrix.arch.name }}
target: ${{ matrix.arch.name }}-unknown-linux-gnu
os: linux
- os: linux
target_suffix: -unknown-linux-gnu
output: libvenbind.so
arch:
- name: x86_64
- name: aarch64
arch: [x86_64, aarch64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,12 +26,12 @@ jobs:
- name: Build
shell: devenv shell bash -- -e {0}
run: |
cargo build --release
cargo build --release --target ${{ matrix.arch }}${{ matrix.platform.target_suffix }}
mkdir dist
cp ./target/release/${{ matrix.platform.output }} ./dist/venbind-${{ matrix.platform.os }}-${{ matrix.arch.name }}.node
cp ./target/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.name }}
path: ./dist/venbind-${{ matrix.platform.os }}-${{ matrix.arch.name }}.node
name: ${{ matrix.platform.os }}-${{ matrix.arch }}
path: ./dist/venbind-${{ matrix.platform.os }}-${{ matrix.arch }}.node

0 comments on commit 650325d

Please sign in to comment.