Skip to content

Commit

Permalink
Create Build SMB3 Foundry.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoeSmo authored May 14, 2021
1 parent 9e72a9e commit 12aac63
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/Build SMB3 Foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build SMB3 Foundry

on:
push:
branches: [ '**' ]
tags-ignore: [ '*' ]
pull_request:
branches: [ '**' ]
tags-ignore: [ '*' ]

jobs:
build:
name: "Build"
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: ubuntu-20.04, exe: 'smb3-foundry', prefix: 'linux', suffix: '', python-version: '3.8'}
- {os: windows-2019, exe: 'smb3-foundry.exe', prefix: 'win64', suffix: '.exe', python-version: '3.8'}
- {os: macos-latest, exe: 'smb3-foundry', prefix: 'osx', suffix: '', python-version: '3.8'}

steps:
- name: Check out
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Get Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install pyinstaller
- name: Build Executable
run: |
pyinstaller smb3-foundry.spec
mv dist/${{ matrix.config.exe }} dist/${{ matrix.config.prefix }}-smb3-foundry${{ matrix.config.suffix }}

0 comments on commit 12aac63

Please sign in to comment.