From 769be9ce6c09428c8815727ed76836b912be02d5 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sat, 10 Apr 2021 23:05:12 +0100 Subject: [PATCH] Add initial package builds. --- .github/workflows/build.yaml | 80 ++++++++++++++++++++++++++++++++++++ .github/workflows/test.yaml | 2 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..d65edff --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,80 @@ +name: Package +on: [push] + +jobs: + build-macos: + + runs-on: macos-latest + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + python-version: [3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Build .app + run: | + build/build-macos.sh + - name: Archive Build + uses: actions/upload-artifact@v2 + with: + name: Package - MacOS + path: | + build/output/BAPSicle.app + + build-ubuntu: + + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + python-version: [3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Build executable + run: | + build/build-linux.sh + - name: Archive Build + uses: actions/upload-artifact@v2 + with: + name: Package - Ubuntu + path: | + build/output/BAPSicle + + build-windows: + + runs-on: windows-latest + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + python-version: [3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Build .exe + run: | + build/build-exe.bat + - name: Archive Build + uses: actions/upload-artifact@v2 + with: + name: Package - Ubuntu + path: | + build/output/BAPSicle.exe + + diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 09cbcab..7419632 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Python package +name: Python test on: [push]