Skip to content

Commit aa99a4c

Browse files
committed
ci: split steps a bit more and add linting
1 parent f00bbe6 commit aa99a4c

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ jobs:
2525
- name: Check out repository
2626
uses: actions/checkout@v3
2727

28-
- name: Obtain certificate
29-
env:
30-
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
28+
- name: Lint
3129
run: |
32-
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o "./Assets/developer-certificate.p12"
30+
make lint
3331
3432
- name: Install Go
3533
uses: actions/setup-go@v5
@@ -38,12 +36,22 @@ jobs:
3836
cache: false
3937
check-latest: true
4038

39+
- name: Build core
40+
run: |
41+
make core
42+
43+
- name: Obtain certificate
44+
env:
45+
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
46+
run: |
47+
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o "./Assets/developer-certificate.p12"
48+
4149
- name: Build for iOS and macOS
4250
env:
4351
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
4452
run: |
45-
make ios mac
46-
make cleanup
53+
make ios mac
54+
make cleanup
4755
4856
- name: Upload application
4957
uses: actions/upload-artifact@v4
@@ -55,4 +63,4 @@ jobs:
5563
# - name: Generate artifact attestation
5664
# uses: actions/attest-build-provenance@v2
5765
# with:
58-
# subject-path: ./Build/synctrain.ipa
66+
# subject-path: ./Build/synctrain.ipa

0 commit comments

Comments
 (0)