-
-
Notifications
You must be signed in to change notification settings - Fork 25
71 lines (61 loc) · 1.29 KB
/
test_OS.yml
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
name: "Test: OS Support"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: |
python -m pip install -r reqs/requirements.txt
- name: make test
run: |
make all
./build/dice d20
make install
dice d100
build_win:
runs-on: windows-2022
steps:
- uses: Vampire/setup-wsl@v1
with:
distribution: Ubuntu-22.04
update: 'true'
additional-packages:
python3-dev
bison
flex
python3-pip
build-essential
libssl-dev
libffi-dev
python3.10-venv
- uses: actions/checkout@v3
with:
submodules: true
- name: test
shell: wsl-bash {0}
run: |
make all
./build/dice d100
build_mac:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: make all
- name: Test
run: ./build/dice d20