Skip to content

rofl-scheduler: Release 0.9.0 #4395

rofl-scheduler: Release 0.9.0

rofl-scheduler: Release 0.9.0 #4395

Workflow file for this run

# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: ci-examples
# Trigger the workflow when:
on:
# A push occurs to one of the matched branches.
push:
branches:
- main
- stable/*
# Or when a pull request event occurs for a pull request against one of the
# matched branches.
pull_request:
branches:
- main
- stable/*
# Cancel in-progress jobs on same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CMAKE_POLICY_VERSION_MINIMUM: 3.5
jobs:
lint-test-runtime-sdk:
name: lint-test-runtime-sdk
runs-on: ubuntu-latest
strategy:
matrix:
example:
- runtime-sdk/minimal-runtime
- runtime-sdk/rofl-oracle-sgx
- runtime-sdk/rofl-oracle-tdx-raw
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
run: rustup show
# Generate Cargo.lock needed for linting.
- name: Generate Cargo.lock
working-directory: examples/${{ matrix.example }}
run: cargo generate-lockfile
- name: Lint ${{ matrix.example }}
uses: ./.github/actions/lint-rust
with:
token: ${{ secrets.GITHUB_TOKEN }}
manifest_path: examples/${{ matrix.example }}/Cargo.toml
- name: Build and test ${{ matrix.example }}
working-directory: examples/${{ matrix.example }}
run: cargo test
build-runtime-sdk-rofl:
name: build-runtime-sdk-rofl
runs-on: ubuntu-latest
strategy:
matrix:
example:
- runtime-sdk/rofl-oracle-sgx
- runtime-sdk/rofl-oracle-tdx-raw
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Oasis CLI
uses: oasisprotocol/setup-cli-action@0.0.2
- name: Build ${{ matrix.example }}
working-directory: examples/${{ matrix.example }}
run: oasis rofl build --deployment testnet
lint-test-contract-sdk:
name: lint-test-contract-sdk
runs-on: ubuntu-latest
strategy:
matrix:
example:
- contract-sdk/hello-world
- contract-sdk/c10l-hello-world
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
run: rustup show
# Generate Cargo.lock needed for linting.
- name: Generate Cargo.lock
working-directory: examples/${{ matrix.example }}
run: cargo generate-lockfile
- name: Lint ${{ matrix.example }}
uses: ./.github/actions/lint-rust
with:
token: ${{ secrets.GITHUB_TOKEN }}
manifest_path: examples/${{ matrix.example }}/Cargo.toml
- name: Build ${{ matrix.example }} for wasm32
working-directory: examples/${{ matrix.example }}
run: cargo build --target wasm32-unknown-unknown --release
- name: Test ${{ matrix.example }}
working-directory: examples/${{ matrix.example }}
run: cargo test
lint-test-client-sdk-go:
name: lint-test-client-sdk-go
runs-on: ubuntu-latest
strategy:
matrix:
example:
- client-sdk/go/minimal-runtime-client
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
# Generate go.sum needed for linting.
- name: Generate go.sum
working-directory: examples/${{ matrix.example }}
run: go get
# NOTE: "file exists" tar errors can be safely ignored, because go is already installed.
- name: Lint ${{ matrix.example }}
uses: golangci/golangci-lint-action@v8
with:
# NOTE: The version must be specified without the patch version.
version: v2.11
working-directory: examples/${{ matrix.example }}
- name: Build ${{ matrix.example }}
working-directory: examples/${{ matrix.example }}
run: go build