Repository navigation
79 lines (65 loc) · 1.67 KB
/
Copy pathci.yml
File metadata and controls
79 lines (65 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on: [push, pull_request]
jobs:
bsd:
runs-on: ${{ matrix.os.host }}
strategy:
fail-fast: false
matrix:
os:
- name: freebsd
architecture: x86-64
version: '15.0'
host: ubuntu-latest
- name: netbsd
architecture: x86-64
version: '10.1'
host: ubuntu-latest
- name: openbsd
architecture: x86-64
version: '7.8'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Run CI script on ${{ matrix.os.name }}
uses: cross-platform-actions/action@v0.32.0
with:
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: ${{ matrix.os.version }}
shell: bash
run: |
set -x
case "$(uname)" in
FreeBSD)
sudo pkg install -y python3
;;
NetBSD)
sudo pkgin -y install python312
for src in /usr/pkg/bin/python3.??; do
:
done
sudo ln -s "$src" /usr/pkg/bin/python3
;;
OpenBSD)
sudo pkg_add -I python%3
;;
esac
python3 test.py
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Test
run: |
python3 test.py
mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Build and test
run: |
python3 test.py