-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (58 loc) · 1.83 KB
/
ci.yml
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
name: CI
on:
push:
branches:
- "*"
- "*/*"
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build executables
run: |
CURRENT_SECS=$(date +%s)
echo "int main() { return $CURRENT_SECS; }" > main.c
gcc main.c -o main
((CURRENT_SECS++))
echo "int main() { return $CURRENT_SECS; }" > main.c
mkdir multi1
gcc main.c -o multi1/main
((CURRENT_SECS++))
echo "int main() { return $CURRENT_SECS; }" > main.c
mkdir multi2
gcc main.c -o multi2/main
((CURRENT_SECS++))
echo "int main() { return $CURRENT_SECS; }" > main.c
mkdir multi3
gcc main.c -o "multi3/main with space"
- name: Sign the executable
uses: ./
with:
certificate: ${{ secrets.MACOS_CERTIFICATE }}
certificate-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
username: ${{ secrets.AC_USERNAME }}
password: ${{ secrets.AC_PASSWORD }}
apple-team-id: ${{ vars.MACOS_TEAM_ID }}
app-path: main
- name: Check signature
run: |
codesign -dvvv main
- name: Sign several executables
uses: ./
with:
certificate: ${{ secrets.MACOS_CERTIFICATE }}
certificate-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
username: ${{ secrets.AC_USERNAME }}
password: ${{ secrets.AC_PASSWORD }}
apple-team-id: ${{ vars.MACOS_TEAM_ID }}
app-path: |
multi1/main
multi2/main
multi3/main with space
- name: Check signatures
run: |
codesign -dvvv multi1/main
codesign -dvvv multi2/main
codesign -dvvv "multi3/main with space"