EPROD-1192 upgrade to ic-cdk 0.18 #1404
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build Test" | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/README.md" | |
| push: | |
| branches: [main] | |
| tags: | |
| - "v*" | |
| paths-ignore: | |
| - "**/README.md" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install rust toolchain | |
| uses: dtolnay/rust-toolchain@1.85.0 | |
| with: | |
| components: clippy, rustfmt | |
| targets: wasm32-unknown-unknown, i686-unknown-linux-gnu | |
| - name: Install Just command runner | |
| uses: extractions/setup-just@v1 | |
| - name: install ic-wasm | |
| run: | | |
| wget https://github.com/dfinity/ic-wasm/releases/download/0.8.1/ic-wasm-linux64 -O /usr/local/bin/ic-wasm | |
| chmod +x /usr/local/bin/ic-wasm | |
| - name: setup environment | |
| run: | | |
| sudo apt update | |
| sudo apt install gcc-multilib | |
| - name: check rust code style | |
| run: | | |
| just check_code | |
| - name: build | |
| run: | | |
| just build | |
| - name: test | |
| run: | | |
| just test | |
| env: | |
| ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} | |
| - name: 32bits test | |
| run: | | |
| just test_i686 | |
| env: | |
| ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} | |