Fix CI configs to actually work

Co-authored-by: Shrukan <shrukan@shrukanslab.xyz>
Reviewed-on: sl-devs/cpp-template#7
This commit is contained in:
2024-02-18 00:15:05 +00:00
parent 6a165bcd51
commit f03782c380
3 changed files with 17 additions and 3 deletions

View File

@ -28,9 +28,9 @@ jobs:
run: tar -czf build/coverage.tar.gz build/meson-logs/coveragereport run: tar -czf build/coverage.tar.gz build/meson-logs/coveragereport
- name: Archive coverage report - name: Archive coverage report
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: docs name: coverage_report
path: build/coverage.tar.gz path: build/coverage.tar.gz
retention-days: 5 retention-days: 5
@ -41,6 +41,9 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Configure
run: just configure
- name: Static analysis - name: Static analysis
run: just check run: just check
@ -51,5 +54,8 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Configure
run: just configure
- name: Sanitize - name: Sanitize
run: just sanitize run: just sanitize

View File

@ -2,15 +2,21 @@ name: Build Docs
run-name: ${{ gitea.ref }} Build run-name: ${{ gitea.ref }} Build
on: on:
push: push:
branches:
- main
jobs: jobs:
build-docs: build-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: gitea.shrukanslab.xyz/sl-devs/cpp-template/dev-environment:latest container: gitea.shrukanslab.xyz/sl-devs/cpp-template/dev-environment:latest
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Configure
run: just configure
- name: Build docs - name: Build docs
run: just docs run: just docs
@ -18,7 +24,7 @@ jobs:
run: tar -czf build/docs.tar.gz build/docs run: tar -czf build/docs.tar.gz build/docs
- name: Archive docs - name: Archive docs
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: docs name: docs
path: build/docs.tar.gz path: build/docs.tar.gz

View File

@ -2,6 +2,8 @@ name: Build Image
run-name: ${{ gitea.ref }} Build run-name: ${{ gitea.ref }} Build
on: on:
push: push:
branches:
- main
jobs: jobs:
build-dev-image: build-dev-image: