diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adb56a3..00bfc42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,23 @@ env: RUST_BACKTRACE: 1 jobs: - build-rust: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] + build-rust-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: . "$HOME/.cargo/env" + with: + workspaces: "expander_compiler -> expander_compiler/target" + - name: Build + run: cargo build --release --manifest-path=expander_compiler/ec_go_lib/Cargo.toml + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: build-ubuntu-latest + path: expander_compiler/target/release/libec_go_lib.* + + build-rust-macos: + runs-on: macos-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable @@ -26,11 +38,11 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: build-${{ matrix.os }} + name: build-macos-latest path: expander_compiler/target/release/libec_go_lib.* upload-rust: - needs: build-rust + needs: [build-rust-macos, build-rust-linux] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -73,7 +85,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - needs: build-rust + needs: [build-rust-macos, build-rust-linux] steps: - uses: styfle/cancel-workflow-action@0.11.0 - uses: actions/checkout@v4