diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 812f52c8..5a54ae40 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -16,12 +16,16 @@ jobs: settings: - host: macos-latest target: 'x86_64-apple-darwin' + - host: macos-latest target: 'aarch64-apple-darwin' + - host: ubuntu-latest target: 'x86_64-unknown-linux-gnu' + - host: ubuntu-latest target: 'aarch64-unknown-linux-gnu' + - host: windows-latest target: 'x86_64-pc-windows-msvc' @@ -34,18 +38,11 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - target: ${{ matrix.settings.target }} - - uses: marcopolo/cargo@master - with: - use-cross: true - working-directory: bindings/c - args: --release --all-features --target=${{ matrix.settings.target }} --locked - command: build + - name: Install Rust stable + run: rustup update stable + + - name: Build bindings + run: cargo build --release --all-features --target=${{ matrix.settings.target }} --locked - name: List folder if: ${{ matrix.settings.target != 'x86_64-pc-windows-msvc' }} @@ -102,12 +99,12 @@ jobs: - name: Move artifacts run: | - mv artifacts/aarch64-apple-darwin/libzen_ffi.a deps/darwin_arm64/ - mv artifacts/x86_64-apple-darwin/libzen_ffi.a deps/darwin_amd64/ - mv artifacts/aarch64-unknown-linux-gnu/libzen_ffi.a deps/linux_arm64/ - mv artifacts/x86_64-unknown-linux-gnu/libzen_ffi.a deps/linux_amd64/ - mv artifacts/x86_64-pc-windows-msvc/zen_ffi.lib deps/windows_amd64/libzen_ffi.lib - mv artifacts/zen_engine.h zen_engine.h + mv -f artifacts/aarch64-apple-darwin/libzen_ffi.a deps/darwin_arm64/ + mv -f artifacts/x86_64-apple-darwin/libzen_ffi.a deps/darwin_amd64/ + mv -f artifacts/aarch64-unknown-linux-gnu/libzen_ffi.a deps/linux_arm64/ + mv -f artifacts/x86_64-unknown-linux-gnu/libzen_ffi.a deps/linux_amd64/ + mv -f artifacts/x86_64-pc-windows-msvc/zen_ffi.lib deps/windows_amd64/libzen_ffi.lib + mv -f artifacts/zen_engine.h ./zen_engine.h rm -rf artifacts - name: Set branch name