-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nobridge' of https://github.com/techguy16/umsktpy into …
…nobridge
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 python310 py310-pip | ||
run: | | ||
python3.11 -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/ |