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

38 lines
945 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@v4
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v4
with:
path: uvm32/test/badge.svg
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4