Skip to content

Commit

Permalink
Merge pull request #261 from gefyrahq/binary-checks
Browse files Browse the repository at this point in the history
chore: add binary checks
  • Loading branch information
SteinRobert committed Nov 11, 2022
2 parents 9f9ffd1 + 9a4d547 commit cef1eb0
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/binary_checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build and test binaries whether they start

on:
pull_request:
branches: [ main ]
paths:
- 'client/poetry.lock'
- 'client/pyoxidizer.bzl'

jobs:
mac_build:
uses: ./.github/workflows/dist-build-mac.yaml
secrets: inherit

mac_binary_test:
needs: mac_build
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get version
working-directory: client/
run: |
cat pyproject.toml | grep version -m 1 | awk '{ print "APP_VERSION="substr($3, 2, length($3) -2)}' >> $GITHUB_ENV
- uses: actions/download-artifact@v3
with:
name: gefyra-${{ env.APP_VERSION }}-darwin-universal
- name: Setup Docker
run: |
brew install docker
docker --version
- name: Sanity run Gefyra
run: |
ls -la
chmod u+x ./gefyra
./gefyra version
windows_build:
uses: ./.github/workflows/dist-build-windows.yaml
secrets: inherit

windows_binary_test:
needs: windows_build
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Determine App Version
working-directory: client/
run: |
python ..\.github\scripts\get_version.py
echo "${{ env.APP_VERSION }}"
- uses: actions/download-artifact@v3
with:
name: gefyra-${{ env.APP_VERSION }}-windows-x86_64
- name: Sanity run Gefyra
run: |
./gefyra version
1 change: 1 addition & 0 deletions .github/workflows/dist-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
retention-days: 5
- name: Create release zip
working-directory: client/
if: ${{ github.event.release && github.event.action == 'published' }}
run: 7z a -r gefyra-${{ env.APP_VERSION }}-windows-x86_64.zip "dist/"
- name: Attach files to release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit cef1eb0

Please sign in to comment.