Skip to content

Commit cad37c4

Browse files
committed
ci: Add tests for examples/runtime-sdk/rofl-oracle
1 parent cdddb5b commit cad37c4

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/ci-examples.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,14 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
example: [runtime-sdk/minimal-runtime]
32+
example: [runtime-sdk/minimal-runtime, runtime-sdk/rofl-oracle-sgx, runtime-sdk/rofl-oracle-tdx-raw]
3333
steps:
3434
- name: Checkout code
3535
uses: actions/checkout@v4
3636

3737
- name: Set up Rust
3838
run: rustup show
3939

40-
# Generate Cargo.lock needed for linting.
41-
- name: Generate Cargo.lock
42-
working-directory: examples/${{ matrix.example }}
43-
run: cargo generate-lockfile
44-
4540
- name: Lint ${{ matrix.example }}
4641
uses: ./.github/actions/lint-rust
4742
with:
@@ -52,6 +47,27 @@ jobs:
5247
working-directory: examples/${{ matrix.example }}
5348
run: cargo test
5449

50+
build-runtime-sdk-rofl:
51+
name: build-runtime-sdk-rofl
52+
runs-on: ubuntu-latest
53+
strategy:
54+
matrix:
55+
example: [runtime-sdk/rofl-oracle-sgx, runtime-sdk/rofl-oracle-tdx-raw]
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v4
59+
60+
- name: Install Oasis CLI
61+
env:
62+
CLI_VERSION: 0.14.3
63+
run: |
64+
wget https://github.com/oasisprotocol/cli/releases/download/v${CLI_VERSION}/oasis_cli_${CLI_VERSION}_linux_amd64.tar.gz -O cli.tar.gz
65+
tar --strip-components 1 -xf cli.tar.gz
66+
67+
- name: Build ${{ matrix.example }}
68+
working-directory: examples/${{ matrix.example }}
69+
run: ../../../oasis rofl build --deployment testnet
70+
5571
lint-test-contract-sdk:
5672
name: lint-test-contract-sdk
5773
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)