-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (70 loc) · 2.08 KB
/
build.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
72
73
74
75
76
name: Build
on:
push:
workflow_dispatch:
jobs:
Build-PC:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022, ubuntu-22.04, ubuntu-20.04, macos-12]
steps:
- name: Obtain latest version of the repository
uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install requirements with PIP
run: pip install --break-system-packages -r requirements.txt
- name: Install pyinstaller
run: pip install --break-system-packages pyinstaller
- name: Build RiiTag RPC
run: pyinstaller riitag-rpc.spec
- name: Mark as executable
if: ${{ matrix.os != 'windows-2022' }}
run: chmod -R +x dist/
- name: Publish Build Artifacts
uses: actions/upload-artifact@master
with:
name: ${{ matrix.os }}-x64
path: dist
Build-RPI:
runs-on: ubuntu-22.04
strategy:
matrix:
target: [rpi_4b_aarch64]
include:
- target: rpi_4b_aarch64
cpu: cortex-a53
cpu_info: cpuinfo/raspberrypi_4b
base_image: raspios_lite_arm64:latest
steps:
- uses: actions/checkout@v3
- name: Build Raspberry pi release
uses: pguyot/arm-runner-action@v2
with:
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
cpu_info: ${{ matrix.cpu_info }}
bind_mount_repository: true
commands: |
sudo apt-get update
sudo apt-get install -y python3-pip
pip3 install --break-system-packages -r requirements.txt
pip3 install --break-system-packages pyinstaller
pyinstaller riitag-rpc.spec
chmod +x -R dist/
- name: Publish Build Artifacts
uses: actions/upload-artifact@master
with:
name: rpi-4b-aarch64
path: dist
Collect-Artifacts:
runs-on: ubuntu-22.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R