-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (35 loc) · 942 Bytes
/
freebsd.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
name: Build and Upload - FreeBSD
on:
push:
branches: [ "nobridge" ]
pull_request:
branches: [ "nobridge" ]
jobs:
build:
runs-on: macos-12
strategy:
matrix:
platform: [amd64, x86]
steps:
- uses: actions/checkout@v3
- name: Build & Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v0
with:
envs: 'MYTOKEN MYTOKEN2'
usesh: true
prepare: |
pkg install -y python3
fetch https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
python3 /tmp/get-pip.py
run: |
python3 -m pip install pyinstaller
pyinstaller --onefile main.py
cp keys.json dist/keys.json
mv dist/main dist/umsktpy
./dist/umsktpy
- name: Upload build artifact
uses: actions/[email protected]
with:
name: umsktpy-freebsd-${{ matrix.platform }}
path: dist/