|
46 | 46 | - name: Reproducible build runs
|
47 | 47 | run: cd test-contract && ./scripts/reproducible_build_docker --update && ./scripts/reproducible_build_docker --no-clean
|
48 | 48 |
|
| 49 | + ubuntu-arm64-docker-build: |
| 50 | + |
| 51 | + runs-on: ubuntu-latest |
| 52 | + |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v3 |
| 55 | + - name: Setup qemu binfmt |
| 56 | + run: docker run --privileged --rm tonistiigi/binfmt --install all |
| 57 | + - name: Install cargo generate |
| 58 | + run: cargo install cargo-generate |
| 59 | + - name: Generate workspace |
| 60 | + run: cargo generate --path . workspace --name test-workspace |
| 61 | + - name: Generate crates && contracts |
| 62 | + run: cd test-workspace && |
| 63 | + make generate CRATE=clib TEMPLATE=c-wrapper-crate DESTINATION=crates TEMPLATE_TYPE=--path TEMPLATE_REPO=.. && |
| 64 | + make generate CRATE=rlib TEMPLATE=x64-simulator-crate DESTINATION=crates TEMPLATE_TYPE=--path TEMPLATE_REPO=.. && |
| 65 | + make generate CRATE=c1 TEMPLATE=contract TEMPLATE_TYPE=--path TEMPLATE_REPO=.. && |
| 66 | + make generate CRATE=c2 TEMPLATE=atomics-contract TEMPLATE_TYPE=--path TEMPLATE_REPO=.. && |
| 67 | + make generate CRATE=c3 TEMPLATE=stack-reorder-contract TEMPLATE_TYPE=--path TEMPLATE_REPO=.. |
| 68 | + - name: Submodules |
| 69 | + run: cd test-workspace && |
| 70 | + git submodule add https://github.com/nervosnetwork/ckb-c-stdlib deps/ckb-c-stdlib && |
| 71 | + git submodule add https://github.com/xxuejie/lib-dummy-atomics deps/lib-dummy-atomics |
| 72 | + - name: Reproducible build runs |
| 73 | + run: cd test-workspace && export DOCKER_RUN_ARGS="--platform linux/arm64" && ./scripts/reproducible_build_docker --update && ./scripts/reproducible_build_docker --no-clean |
| 74 | + - name: Generate standalone contract |
| 75 | + run: cargo generate --path . standalone-contract --name test-contract |
| 76 | + - name: Reproducible build runs |
| 77 | + run: cd test-contract && export DOCKER_RUN_ARGS="--platform linux/arm64" && ./scripts/reproducible_build_docker --update && ./scripts/reproducible_build_docker --no-clean |
| 78 | + |
49 | 79 | debian-build:
|
50 | 80 |
|
51 | 81 | runs-on: ubuntu-latest
|
|
98 | 128 |
|
99 | 129 | steps:
|
100 | 130 | - name: Install dependencies
|
101 |
| - run: sudo dnf -y install clang git make openssl-devel |
| 131 | + run: sudo dnf -y install clang llvm git make openssl-devel |
102 | 132 | - uses: actions-rust-lang/setup-rust-toolchain@v1
|
103 | 133 | with:
|
104 | 134 | components: clippy
|
@@ -138,7 +168,7 @@ jobs:
|
138 | 168 |
|
139 | 169 | steps:
|
140 | 170 | - name: Install dependencies
|
141 |
| - run: pacman --noconfirm -Syu clang git make openssl pkgconf |
| 171 | + run: pacman --noconfirm -Syu clang llvm git make openssl pkgconf |
142 | 172 | - uses: actions-rust-lang/setup-rust-toolchain@v1
|
143 | 173 | with:
|
144 | 174 | components: clippy
|
|
0 commit comments