uvm32/.github/workflows/build.yml
2025-12-14 02:28:28 +00:00

39 lines
980 B
YAML

name: CI
on: [push, pull_request]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: uvm32
- name: Build
run: make dockerbuild_cached && make docker
working-directory: uvm32
- name: CI test
run: make dockerci
working-directory: uvm32
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2
with:
path: uvm32/test/badge.svg
artifact_name: badge.svg
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3