diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6d94971..8f00605 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,8 @@ jobs: outputs: filter: ${{ steps.filter.outputs.demo == 'true' || steps.filter.outputs.workflows == 'true' }} steps: - - uses: actions/checkout@v2 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: filters: .github/filters.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install dfx uses: dfinity/setup-dfx@main @@ -34,7 +34,7 @@ jobs: dfx-version: "0.9.2" - name: Install Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index eb83e04..e7e2886 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -11,8 +11,8 @@ jobs: outputs: filter: ${{ steps.filter.outputs.e2e == 'true' || steps.filter.outputs.workflows == 'true' }} steps: - - uses: actions/checkout@v2 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: filters: .github/filters.yml @@ -23,19 +23,19 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ macos-latest, ubuntu-latest ] + os: [ macos-14-large, ubuntu-20.04 ] # only dfx >= 0.8.3 lets us query multiple controllers dfx: [ '0.9.2' ] env: DFX_VERSION: ${{ matrix.dfx }} steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Cache Cargo - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -43,10 +43,10 @@ jobs: ./target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.rust }}-1 - name: Provision Darwin - if: matrix.os == 'macos-latest' + if: ${{ contains(matrix.os, 'macos') }} run: bash .github/workflows/provision-darwin.sh - name: Provision Linux - if: matrix.os == 'ubuntu-latest' + if: ${{ contains(matrix.os, 'ubuntu') }} run: bash .github/workflows/provision-linux.sh - name: Install dfx uses: dfinity/setup-dfx@main diff --git a/.github/workflows/fmt.yaml b/.github/workflows/fmt.yaml index 8b48abd..ad9ebd3 100644 --- a/.github/workflows/fmt.yaml +++ b/.github/workflows/fmt.yaml @@ -8,8 +8,8 @@ jobs: outputs: filter: ${{ steps.filter.outputs.backend == 'true' || steps.filter.outputs.workflows == 'true' }} steps: - - uses: actions/checkout@v2 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: filters: .github/filters.yml @@ -23,9 +23,9 @@ jobs: os: [ ubuntu-latest ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | ~/.cargo/registry diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a5f5faa..6fcf9b8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,8 +8,8 @@ jobs: outputs: filter: ${{ steps.filter.outputs.backend == 'true' || steps.filter.outputs.workflows == 'true' }} steps: - - uses: actions/checkout@v2 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: filters: .github/filters.yml @@ -25,9 +25,9 @@ jobs: node-version: ['12.x'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -39,7 +39,7 @@ jobs: with: dfx-version: "0.9.2" - name: Install Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Run Lint diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index b4c6a03..1d98f17 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -11,8 +11,8 @@ jobs: outputs: filter: ${{ steps.filter.outputs.shell == 'true' || steps.filter.outputs.workflows == 'true' }} steps: - - uses: actions/checkout@v2 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: filters: .github/filters.yml @@ -21,9 +21,9 @@ jobs: needs: filter if: ${{ needs.filter.outputs.filter == 'true' }} name: Check shell scripts - runs-on: macos-latest + runs-on: macos-14-large steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install shellcheck run: | mkdir $HOME/bin diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14de511..8389f47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,8 +11,8 @@ jobs: outputs: filter: ${{ steps.filter.outputs.backend == 'true' || steps.filter.outputs.workflows == 'true' }} steps: - - uses: actions/checkout@v2 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: filters: .github/filters.yml @@ -23,11 +23,11 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-20.04, macos-14-large] node-version: ['12.x'] steps: - - uses: actions/checkout@v1 - - uses: actions/cache@v2 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -39,7 +39,7 @@ jobs: with: dfx-version: "0.9.2" - name: Install Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Run tests diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b959a67..6372b5f 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.74.1" +channel = "1.79.0" components = ["clippy", "rustfmt"] targets = ["wasm32-unknown-unknown"] diff --git a/wallet/build.sh b/wallet/build.sh index 76ffe5d..5ed16be 100755 --- a/wallet/build.sh +++ b/wallet/build.sh @@ -15,7 +15,7 @@ gzip -f dist/*.js # Disable modern wasm features so the wallet binary will run on dfx 0.9.2's bundled replica cargo rustc -p wallet --target wasm32-unknown-unknown --release -- -Ctarget-cpu=mvp -Ctarget-feature=-sign-ext -cargo install ic-wasm --root target --locked +cargo install ic-wasm --root target --locked --version 0.8.0 STATUS=$? if [ "$STATUS" -eq "0" ]; then