support cmake #31
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 | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
actions: write | |
concurrency: | |
group: test | |
cancel-in-progress: true | |
jobs: | |
clear-cache: | |
name: Clear cache | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clear cache | |
run: gh cache delete --repo "${{ github.repository }}" --all || exit 0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
test-check: | |
name: Test setup-blogc | |
runs-on: ubuntu-latest | |
needs: clear-cache | |
strategy: | |
matrix: | |
version: | |
- HEAD | |
- LATEST | |
- "v0.20.0" | |
- "0.19.0" | |
- "3f6ae823cd8ff8049abeca2be495c727563c919e" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Test | |
id: test | |
uses: ./ | |
with: | |
blogc-version: ${{ matrix.version }} | |
- name: Dump outputs | |
run: | | |
echo "Version: ${{ steps.test.outputs.blogc-version }}" | |
echo "Cache hit: ${{ steps.test.outputs.cache-hit }}" | |
# FIXME: deduplicate | |
test-check-cache: | |
name: Test setup-blogc with cache | |
runs-on: ubuntu-latest | |
needs: test-check | |
strategy: | |
matrix: | |
version: | |
- HEAD | |
- LATEST | |
- "v0.20.0" | |
- "0.19.0" | |
- "3f6ae823cd8ff8049abeca2be495c727563c919e" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Test | |
id: test | |
uses: ./ | |
with: | |
blogc-version: ${{ matrix.version }} | |
- name: Dump outputs | |
run: | | |
echo "Version: ${{ steps.test.outputs.blogc-version }}" | |
echo "Cache hit: ${{ steps.test.outputs.cache-hit }}" |