feat: cache test workflow #42
Workflow file for this run
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: Selftest | |
on: pull_request | |
jobs: | |
alr-install: | |
name: ${{ matrix.os }}, cache=${{ matrix.cached }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-13 # x64 | |
- macos-latest # arm64 | |
- ubuntu-latest | |
- windows-latest | |
cached: | |
- false | |
- true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Selftest | |
uses: ./ # Uses the action code from the PR itself | |
with: | |
# One binary and one source crate. We could use a lighter binary | |
# crate prepared to this effect... TODO. | |
crates: gprbuild hello | |
cache: ${{ matrix.cached }} | |
- name: Run check | |
shell: bash | |
run: | | |
which gprbuild && \ | |
gprbuild --version && \ | |
hello | grep "Hello, world!" |