Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- run: rustup update
- run: cargo fmt --all --check

Expand All @@ -85,21 +85,21 @@ jobs:
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@91bf2b620e09e18d6eb78b92e7861937469acedb
with:
command: check ${{ matrix.checks }}

check-git-rev-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: stellar/actions/rust-check-git-rev-deps@main

semver-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- run: rustup update stable
- name: Determine Rust n-2 version since cargo-semver-checks is rarely available for the latest version
id: rust-version
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
sys: ${{ fromJSON(needs.setup.outputs.sys) }}
runs-on: ${{ matrix.sys.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Install minimum supported rust version
if: matrix.rust == 'msrv'
run: |
Expand All @@ -164,15 +164,15 @@ jobs:
if: matrix.rust == 'msrv'
run: echo RUSTFLAGS='-Dwarnings' >> $GITHUB_ENV
- run: echo CARGO_BUILD_TARGET='${{ matrix.sys.target }}' >> $GITHUB_ENV
- uses: stellar/binaries@v45
- uses: stellar/binaries@v55
with:
name: cargo-hack
version: 0.5.28
- run: cargo version
- run: make build-libs
- run: make build-test-wasms TEST_CRATES_RUSTUP_TOOLCHAIN=$RUSTUP_TOOLCHAIN
- name: Upload test wasms
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: test-wasms-${{ matrix.rust }}-${{ matrix.sys.target }}
path: target/wasm32v1-none/release/test_*.wasm
Expand All @@ -187,7 +187,7 @@ jobs:
sys: ${{ fromJSON(needs.setup.outputs.sys) }}
runs-on: ${{ matrix.sys.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Install minimum supported rust version
if: matrix.rust == 'msrv'
run: |
Expand All @@ -213,12 +213,12 @@ jobs:
if: matrix.rust == 'msrv'
run: echo RUSTFLAGS='-Dwarnings' >> $GITHUB_ENV
- run: echo CARGO_BUILD_TARGET='${{ matrix.sys.target }}' >> $GITHUB_ENV
- uses: stellar/binaries@v45
- uses: stellar/binaries@v55
with:
name: cargo-hack
version: 0.5.28
- name: Restore test wasms for tests from one of the msrv builds
uses: actions/download-artifact@v5
uses: actions/download-artifact@v8
with:
name: test-wasms-msrv-x86_64-unknown-linux-gnu
path: target/wasm32v1-none/release/
Expand All @@ -232,10 +232,10 @@ jobs:
build-fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: stellar/actions/rust-cache@main
- run: rustup install nightly
- uses: stellar/binaries@v45
- uses: stellar/binaries@v55
with:
name: cargo-fuzz
version: 0.13.1
Expand All @@ -246,7 +246,7 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: stellar/actions/rust-cache@main
- run: rustup install nightly
- run: make doc
Expand All @@ -256,7 +256,7 @@ jobs:
readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: stellar/actions/rust-cache@main
- run: rustup install nightly
- run: make readme
Expand All @@ -265,7 +265,7 @@ jobs:
migration-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: stellar/actions/rust-cache@main
- run: rustup update
- run: |
Expand All @@ -276,19 +276,19 @@ jobs:
expand-test-wasms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: stellar/actions/rust-cache@main
- name: Install minimum supported rust version
run: |
msrv="$(make msrv)"
rustup install $msrv
rustup target add --toolchain $msrv wasm32v1-none
rustup component add rustfmt
- uses: stellar/binaries@v45
- uses: stellar/binaries@v55
with:
name: cargo-hack
version: 0.5.28
- uses: stellar/binaries@v45
- uses: stellar/binaries@v55
with:
name: cargo-expand
version: 1.0.116
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
collect-crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: OpenZeppelin/stellar-contracts
ref: main
Expand All @@ -43,12 +43,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout rs-soroban-sdk
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
path: rs-soroban-sdk

- name: Checkout OpenZeppelin stellar-contracts
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: OpenZeppelin/stellar-contracts
ref: main
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

- name: Upload WASM artifacts
if: steps.check-if-contract.outputs.is-a-contract == 'true'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ steps.artifact-name.outputs.name }}
path: 'stellar-contracts/target/wasm32v1-none/release/*.wasm'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-with-soroban-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
collect-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
repository: stellar/soroban-examples
ref: main
Expand Down Expand Up @@ -58,12 +58,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout rs-soroban-sdk
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
path: rs-soroban-sdk

- name: Checkout soroban-examples
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: stellar/soroban-examples
ref: main
Expand All @@ -74,11 +74,11 @@ jobs:
rustup update
rustup target add wasm32v1-none

- uses: denoland/setup-deno@909cc5acb0fdd60627fb858598759246509fa755 # v2.0.2
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
with:
deno-version: v2.x

- uses: stellar/stellar-cli@v23.1.4
- uses: stellar/stellar-cli@v26.0.0

- uses: stellar/actions/rust-cache@main

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
run: echo "name=wasm-$(echo ${{ matrix.working-directory }} | sed 's/\//-/g')${{ matrix.experimental_spec_shaking_v2 && '-spec-shaking-v2' || '' }}" | tee -a $GITHUB_OUTPUT

- name: Upload WASM artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: ${{ steps.artifact-name.outputs.name }}
path: 'soroban-examples/${{ matrix.working-directory }}/**/*.wasm'
Expand Down
Loading