Skip to content

Commit

Permalink
Merge pull request #298 from andrewwhitehead/upd/rust-ver
Browse files Browse the repository at this point in the history
Update Rust version used in CI
  • Loading branch information
swcurran committed Jan 11, 2024
2 parents fd44f1b + 5ba377d commit a180cce
Show file tree
Hide file tree
Showing 2 changed files with 1,089 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Anoncreds"

env:
RUST_VERSION: "1.65.0"
RUST_VERSION: "stable 6 months ago"
CROSS_VERSION: "0.2.4"

on:
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
if: ${{ runner.os == 'Linux' }}
run: |
if [ -n "${{ matrix.use_cross }}" ]; then
cargo install --git https://github.com/cross-rs/cross --tag v${{ env.CROSS_VERSION }} cross
cargo install --locked --git https://github.com/cross-rs/cross --tag v${{ env.CROSS_VERSION }} cross
cross build --release --package anoncreds --target ${{matrix.target}} --features vendored
else
cargo build --release --package anoncreds --target ${{matrix.target}} --features vendored
Expand Down Expand Up @@ -253,7 +253,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


build-py:
name: Build Python
needs: [build-release]
Expand Down Expand Up @@ -342,6 +341,9 @@ jobs:
i686-linux-android,
x86_64-linux-android,
]
# NB: RUST_VERSION must be <1.68 here to support NDK 17
env:
RUST_VERSION: "1.67"

steps:
- name: Checkout
Expand All @@ -358,7 +360,8 @@ jobs:

- name: Build
run: |
cargo install --git https://github.com/cross-rs/cross --tag v${{ env.CROSS_VERSION }} cross
cargo install --locked --git https://github.com/cross-rs/cross --tag v${{ env.CROSS_VERSION }} cross
cp Cargo.lock.android Cargo.lock
cross build --release --target ${{ matrix.target }} --features=vendored
- name: Upload artifacts
Expand Down Expand Up @@ -418,7 +421,7 @@ jobs:
targets: ${{matrix.architecture}}

- name: Build
run: cargo build --release --target ${{matrix.architecture}} --features=vendored
run: cargo build --release --target ${{matrix.architecture}} --features=vendored

- name: Save artifacts
uses: actions/upload-artifact@v3
Expand Down
Loading

0 comments on commit a180cce

Please sign in to comment.