From 650325d73fd8f77a967a3f6e38abef4a6fe0cfb5 Mon Sep 17 00:00:00 2001 From: Tuxinal <24763016+tuxinal@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:42:21 +0330 Subject: [PATCH] ci: fix build.yml apparently target was completely ignored :P --- .github/workflows/build.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d77bd3e..4b43e43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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