-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from Pennyw0rth/feature/linux_build
Finalize Native Builds
- Loading branch information
Showing
5 changed files
with
122 additions
and
97 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,33 @@ | ||
name: Build ZippApps | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Building Python ZipApp on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: NetExec set up python on ${{ matrix.os }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build Python ZipApp with Shiv | ||
run: | | ||
pip install shiv | ||
python build_collector.py | ||
- name: Upload nxc ZipApp | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nxc-zipapp-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: bin/nxc | ||
- name: Upload nxcdb ZipApp | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nxcdb-zipapp-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: bin/nxcdb |
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,37 @@ | ||
name: Build Binaries | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Building Binary on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
python-version: ["3.11"] | ||
#python-version: ["3.8", "3.9", "3.10", "3.11"] # for binary builds we only need one version | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: NetExec set up python on ${{ matrix.os }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build Native Binary | ||
run: | | ||
pip install pyinstaller | ||
pip install . | ||
pyinstaller netexec.spec | ||
- name: Upload Windows Binary | ||
if: runner.os == 'windows' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nxc.exe | ||
path: dist/nxc.exe | ||
- name: Upload Nix/OSx Binary | ||
if: runner.os != 'windows' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nxc-${{ matrix.os }} | ||
path: dist/nxc |
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.