mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
39 lines
980 B
YAML
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
|