ci(github): mv sudo
, gmake test
out of script
#113
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: CI | |
on: [push, pull_request] | |
jobs: | |
test-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
.github/workflows/install-deps.sh | |
- name: Test | |
run: | | |
gmake test | |
test-bsd: | |
runs-on: ${{ matrix.os.host }} | |
strategy: | |
matrix: | |
os: | |
- name: freebsd | |
architecture: x86-64 | |
version: '13.2' | |
host: ubuntu-latest | |
- name: netbsd | |
architecture: x86-64 | |
version: '9.3' | |
host: ubuntu-latest | |
- name: openbsd | |
architecture: x86-64 | |
version: '7.4' | |
host: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run CI script on ${{ matrix.os.name }} | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: ${{ matrix.os.name }} | |
architecture: ${{ matrix.os.architecture }} | |
version: ${{ matrix.os.version }} | |
shell: bash | |
run: | | |
# Use sudo(1) rather than doas(1) on OpenBSD. | |
# doas(1) isn't configured. | |
# See https://github.com/cross-platform-actions/action/issues/75 | |
sudo .github/workflows/install-deps.sh | |
gmake test |