Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 on:
2 push:
3 branches: '*'
4 pull_request:
5
6 name: CI
7
8 jobs:
9
10 test-ubuntu:
11 runs-on: ubuntu-22.04
12 steps:
13
14 - uses: actions/checkout@v4
15 with:
16 fetch-depth: 0
17
18 - name: Dependency packages (apt)
19 run: |
20 sudo apt update
21 sudo apt -y install python3-pip
22
23 - name: Dependency packages (pip)
24 run: |
25 python3 -m pip install -U pip setuptools setuptools[core] wheel
26 python3 -m pip install setuptools_scm mypy types-requests .
27
28 - name: Tests
29 run: |
30 make mypy
31 bash scripts/tests/test.sh
32
33 build-ubuntu:
34 runs-on: ubuntu-22.04
35 steps:
36
37 - uses: actions/checkout@v4
38 with:
39 fetch-depth: 0
40
41 - name: Dependency packages (apt)
42 run: |
43 sudo apt update
44 sudo apt -y install python3-pip
45
46 - name: Dependency packages (pip)
47 run: |
48 python3 -m pip install -U pip setuptools setuptools[core] wheel
49 python3 -m pip install setuptools_scm
50
51 - name: Set environment variables
52 id: vars
53 run: |
54 echo "ver=$(make version)" >> $GITHUB_OUTPUT
55
56 - name: Build dist
57 run: make dist
58
59 - name: Upload artifacts
60 uses: actions/upload-artifact@v4
61 with:
62 name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-sdist
63 path: greaseweazle-${{ steps.vars.outputs.ver }}.zip
64
65 build-win32:
66 runs-on: windows-2022
67 steps:
68
69 - uses: actions/checkout@v4
70 with:
71 fetch-depth: 0
72
73 - name: Set up Python
74 uses: actions/setup-python@v5
75 with:
76 python-version: 3.8
77 architecture: x86
78
79 - name: Dependency packages (pip)
80 run: |
81 python -m pip install -U pip setuptools wheel
82 python -m pip install cx_Freeze setuptools_scm
83
84 - name: Set environment variables
85 id: vars
86 shell: bash
87 run: |
88 echo "ver=$(make version)" >> $GITHUB_OUTPUT
89
90 - name: Build dist
91 shell: bash
92 run: |
93 export GW=greaseweazle-${{ steps.vars.outputs.ver }}
94 make windist
95 curl -L http://softpres.org/_media/files:spsdeclib_5.1_windows.zip --output ipf.zip
96 7z x -oipf ipf.zip
97 cp -a ipf/capsimg_binary/CAPSImg.dll $GW/
98 rm -rf ipf ipf.zip
99
100 - name: Upload artifacts
101 uses: actions/upload-artifact@v4
102 with:
103 name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-win32
104 path: greaseweazle-${{ steps.vars.outputs.ver }}
105
106 build-win64:
107 runs-on: windows-2022
108 steps:
109
110 - uses: actions/checkout@v4
111 with:
112 fetch-depth: 0
113
114 - name: Set up Python
115 uses: actions/setup-python@v5
116 with:
117 python-version: 3.11
118 architecture: x64
119
120 - name: Dependency packages (pip)
121 run: |
122 python -m pip install -U pip setuptools wheel
123 python -m pip install cx_Freeze setuptools_scm
124
125 - name: Set environment variables
126 id: vars
127 shell: bash
128 run: |
129 echo "ver=$(make version)" >> $GITHUB_OUTPUT
130
131 - name: Build dist
132 shell: bash
133 run: |
134 export GW=greaseweazle-${{ steps.vars.outputs.ver }}
135 make windist
136 curl -L http://softpres.org/_media/files:spsdeclib_5.1_windows.zip --output ipf.zip
137 7z x -oipf ipf.zip
138 cp -a ipf/capsimg_binary/x64/CAPSImg.dll $GW/
139 rm -rf ipf ipf.zip
140
141 - name: Upload artifacts
142 uses: actions/upload-artifact@v4
143 with:
144 name: greaseweazle-ci-${{ steps.vars.outputs.ver }}-win64
145 path: greaseweazle-${{ steps.vars.outputs.ver }}