Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add binary checks #261

Merged
merged 1 commit into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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