diff --git a/.github/workflows/ci.yml b/.github/workflows/contract.yml similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/contract.yml index 638ece7312..5fb44aeff5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/contract.yml @@ -1,4 +1,4 @@ -name: Contract Development +name: Contract # Pushes to long living branches and all PRs on: diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml new file mode 100644 index 0000000000..448317bca6 --- /dev/null +++ b/.github/workflows/workspace.yml @@ -0,0 +1,39 @@ +name: Workspace + +# Check workspace build on merge commit of all PRs. +# Branches are checked better by CircleCI. +on: + pull_request: + +env: + RUST_BACKTRACE: 1 + +jobs: + check-workspace: + name: Check workspace + runs-on: ubuntu-24.04 + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.73.0 + targets: wasm32-unknown-unknown + components: clippy, rustfmt + - name: Check workspace + run: ./devtools/check_workspace.sh + + test-workspace: + name: Test workspace + runs-on: ubuntu-24.04 + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.73.0 + components: rustfmt + - name: Test workspace + run: ./devtools/test_workspace.sh