Skip to content

b1.4 (Pre-Release)

b1.4 (Pre-Release) #5

Workflow file for this run

name: 'Build NSO-RPC - x86_64'
on:
release:
types: [published]
jobs:
build-x86_64:
name: 'Build NSO-RPC - x86_64'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.11.4
# Windows Build
- name: "Build"
if: matrix.os == 'windows-latest'
run: |
cd scripts &&
python -m pip install pyqt6 &&
./build.bat
- name: "Upload Build"
if: matrix.os == 'windows-latest'
uses: softprops/[email protected]
with:
files: client/dist/NSO-RPC.exe
# Linux Build
- name: "Upload script"
if: matrix.os == 'ubuntu-latest'
uses: softprops/[email protected]
with:
files: scripts/linux.sh
# MacOS Build
- name: "Build"
if: matrix.os == 'macos-latest'
run: |
cd scripts &&
python -m pip install pyqt6 &&
bash ./build.sh &&
cd ../client/dist &&
ln -s /Applications "Applications (admin)" &&
hdiutil create -fs HFS+ -srcfolder . -volname NSO-RPC mac-installer.dmg &&
zip -yr mac-portable.zip NSO-RPC.app/
- name: "Upload Build"
if: matrix.os == 'macos-latest'
uses: softprops/[email protected]
with:
files: |
client/dist/mac-installer.dmg
client/dist/mac-portable.zip
build-universal2:
name: 'Build NSO-RPC - Universal2'
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
# MacOS Universal Build
- name: "Install Python 3.11.4 and build NSO-RPC"
run: |
curl https://www.python.org/ftp/python/3.11.4/python-3.11.4-macos11.pkg -o python-3.11.4-macos11.pkg
sudo installer -verbose -pkg python-3.11.4-macos11.pkg -target / &&
alias python3=python3.11
cd scripts/macos-universal2 &&
bash ./build.sh &&
cd ../../client/dist &&
ln -s /Applications "Applications (admin)" &&
hdiutil create -fs HFS+ -srcfolder . -volname NSO-RPC mac-universal2-installer.dmg &&
zip -yr mac-universal2-portable.zip NSO-RPC.app/
- name: "Upload NSO-RPC Universal2 Build"
uses: softprops/[email protected]
with:
files: |
client/dist/mac-universal2-installer.dmg
client/dist/mac-universal2-portable.zip
get-hashes:
runs-on: "ubuntu-latest"
needs: ["build-x86_64", "build-universal2"]
steps:
- name: "Generate checksums.txt"
uses: MCJack123/ghaction-generate-release-hashes@v4
with:
hash-type: sha256
file-name: checksums.txt
get-assets: true
- uses: softprops/[email protected]
with:
files: checksums.txt