ci: Fixed the release-plz trigger branch to be master
(not main
)
#2240
This file contains 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: Test Small Examples | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
test: | |
runs-on: ${{ matrix.platform }} | |
name: "${{ matrix.platform }} ${{ matrix.toolchain }}" | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
# after fix of https://github.com/near/nearcore/pull/9140#issuecomment-1576655073, it should be [stable] | |
toolchain: [1.69.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "${{ matrix.toolchain }} with rustfmt, clippy, and wasm32" | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.toolchain }} | |
target: wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v1 | |
- name: Build status-message-collections | |
env: | |
RUSTFLAGS: '-C link-arg=-s' | |
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/status-message-collections/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/status-message-collections/target/wasm32-unknown-unknown/release/*.wasm ./examples/status-message-collections/res/ | |
- name: Test status-message-collections | |
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/status-message-collections/Cargo.toml --all | |
- name: Build lockable-fungible-token | |
env: | |
RUSTFLAGS: '-C link-arg=-s' | |
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/lockable-fungible-token/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/lockable-fungible-token/target/wasm32-unknown-unknown/release/*.wasm ./examples/lockable-fungible-token/res/ | |
- name: Test lockable-fungible-token | |
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/lockable-fungible-token/Cargo.toml --all | |
- name: Build status-message | |
env: | |
RUSTFLAGS: '-C link-arg=-s' | |
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/status-message/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/status-message/target/wasm32-unknown-unknown/release/*.wasm ./examples/status-message/res/ | |
- name: Test status-message | |
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/status-message/Cargo.toml --all | |
- name: Build mission-control | |
env: | |
RUSTFLAGS: '-C link-arg=-s' | |
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/mission-control/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/mission-control/target/wasm32-unknown-unknown/release/*.wasm ./examples/mission-control/res/ | |
- name: Test mission-control | |
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/mission-control/Cargo.toml --all | |
- name: Build test-contract | |
env: | |
RUSTFLAGS: '-C link-arg=-s' | |
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/test-contract/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/test-contract/target/wasm32-unknown-unknown/release/*.wasm ./examples/test-contract/res/ | |
- name: Test test-contract | |
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/test-contract/Cargo.toml --all |