Skip to content

Commit

Permalink
Merge pull request #27 from Pennyw0rth/github_builder
Browse files Browse the repository at this point in the history
Update Github Build Actions for Releases
  • Loading branch information
Marshall-Hallenbeck authored Sep 19, 2023
2 parents f876113 + 9b76759 commit b6f6f19
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/netexec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ jobs:
name: NetExec Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
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 tests on ${{ matrix.os }}
- name: NetExec set up python on ${{ matrix.os }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build binaries with Shiv
run: |
pip install shiv
python build_collector.py
- name: Build Windows binary
if: runner.os == 'windows'
run: |
pip install pyinstaller
pip install .
pyinstaller netexec.spec
- name: Upload nxc binary
uses: actions/upload-artifact@master
with:
Expand All @@ -32,3 +37,9 @@ jobs:
with:
name: nxcdb-${{ matrix.os }}-${{ matrix.python-version }}
path: bin/nxcdb
- name: Upload netexec binary (Windows)
if: runner.os == 'windows'
uses: actions/upload-artifact@master
with:
name: netexec-${{ matrix.os }}
path: dist/netexec.exe

0 comments on commit b6f6f19

Please sign in to comment.