GOpenHMD base #7
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: tests | |
on: [pull_request, workflow_dispatch] | |
permissions: | |
checks: write | |
jobs: | |
test: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Update packages | |
run: sudo apt-get update | |
- name: Install packages | |
uses: awalsh128/[email protected] | |
with: | |
packages: valac gjs meson libopenhmd-dev gobject-introspection libgirepository1.0-dev | |
version: 1.0 | |
- name: Meson Build | |
uses: BSFishy/[email protected] | |
with: | |
action: build | |
setup-options: --prefix=${{ github.workspace }}/dist-install | |
- name: Meson Build 'typelib' target | |
run: cd build && meson compile 'gopenhmd typelib' | |
- name: Meson Test | |
uses: BSFishy/[email protected] | |
with: | |
action: test | |
- name: Meson Install | |
uses: BSFishy/[email protected] | |
with: | |
action: install | |
- name: Install typelib | |
run: install -D ./build/GOpenHMD-*.typelib -t ./dist-install/share/girepository-1.0/ | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: ${{ !env.ACT }} | |
with: | |
comment_mode: off | |
files: | | |
build/meson-logs/*.junit.xml | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ !env.ACT }} | |
with: | |
name: dist-install | |
path: | | |
dist-install |