| 1 | name: OpenBSD |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | branches: [main] |
| 8 | merge_group: |
| 9 | types: [checks_requested] |
| 10 | branches: [main] |
| 11 | |
| 12 | permissions: |
| 13 | contents: read |
| 14 | |
| 15 | jobs: |
| 16 | testopenbsd: |
| 17 | runs-on: ubuntu-latest |
| 18 | name: CI OpenBSD |
| 19 | steps: |
| 20 | - uses: actions/checkout@v7 |
| 21 | - name: Build and test in OpenBSD |
| 22 | id: test |
| 23 | uses: cross-platform-actions/[email protected] |
| 24 | with: |
| 25 | operating_system: openbsd |
| 26 | architecture: x86-64 |
| 27 | version: '7.9' |
| 28 | cpu_count: 4 |
| 29 | shell: bash |
| 30 | run: | |
| 31 | sudo sh -c 'echo "https://cdn.openbsd.org/pub/OpenBSD" > /etc/installurl' |
| 32 | sudo pkg_add ninja cmake |
| 33 | pkg_info |
| 34 | sysctl -n kern.version |
| 35 | .github/s2n_bsd.sh |
| 36 | - name: upload test results |
| 37 | if: ${{ failure() }} |
| 38 | uses: actions/upload-artifact@master |
| 39 | with: |
| 40 | name: all_test_output |
| 41 | path: | |
| 42 | output |