-
-
Notifications
You must be signed in to change notification settings - Fork 28
114 lines (107 loc) · 3.24 KB
/
binary_checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Build and test binaries whether they start
on:
pull_request:
branches: [ main ]
paths:
- 'client/poetry.lock'
jobs:
mac_build:
uses: ./.github/workflows/dist-build-mac.yaml
secrets: inherit
mac_binary_test:
needs: mac_build
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Gefyra tracking config
shell: bash
run: |
mkdir -p ~/.gefyra
cd ~/.gefyra
touch config.ini
echo "[telemetry]" >> config.ini
echo "track = False" >> config.ini
- 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@v4
with:
name: gefyra-${{ env.APP_VERSION }}-darwin-universal
- name: Install QEMU 9.0.2
uses: docker/actions-toolkit/.github/actions/macos-setup-qemu@8e475672d005e1bef9417c8cdd16b6c512d1cab7
- name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v3
- name: Sanity run Gefyra
run: |
ls -la
chmod u+x ./gefyra
docker info
./gefyra --debug 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@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Set Gefyra tracking config
shell: bash
run: |
mkdir -p ~/.gefyra
cd ~/.gefyra
touch config.ini
echo "[telemetry]" >> config.ini
echo "track = False" >> config.ini
- name: Determine App Version
working-directory: client/
run: |
python ..\.github\scripts\get_version.py
echo "${{ env.PYAPP_PROJECT_VERSION }}"
- uses: actions/download-artifact@v4
with:
name: gefyra-${{ env.PYAPP_PROJECT_VERSION }}-windows-x86_64
path: gefyra
- name: Print info
run: |
ls
docker info
- name: Sanity run Gefyra
shell: cmd
run: .\gefyra\gefyra.exe --debug version
linux_build:
uses: ./.github/workflows/dist-build-linux.yaml
secrets: inherit
linux_binary_test:
needs: linux_build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Gefyra tracking config
shell: bash
run: |
mkdir -p ~/.gefyra
cd ~/.gefyra
touch config.ini
echo "[telemetry]" >> config.ini
echo "track = False" >> config.ini
- 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@v4
with:
name: gefyra-${{ env.APP_VERSION }}-linux-amd64
- name: Sanity run Gefyra
run: |
chmod u+x ./gefyra
docker info
./gefyra --debug version