Merge pull request #92 from spinframework/update-ci #156
This file contains hidden or 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: Build Examples | |
| on: | |
| push: | |
| branches: ["main", "v*"] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: ["main", "v*"] | |
| paths-ignore: | |
| - "README.md" | |
| env: | |
| RUST_VERSION: "1.86" | |
| SPIN_VERSION: "" | |
| jobs: | |
| examples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: "${{ env.RUST_VERSION }}" | |
| targets: wasm32-wasip1 | |
| - name: Install Spin | |
| uses: fermyon/actions/spin/setup@v1 | |
| - name: Run build_examples.sh | |
| run: | | |
| chmod +x scripts/build_examples.sh | |
| scripts/build_examples.sh |