-
Notifications
You must be signed in to change notification settings - Fork 15
75 lines (61 loc) · 1.7 KB
/
ci.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
name: ci
on:
push:
branches:
- 'main'
pull_request: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/tillitis/tkey-builder:4
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: fix
# https://github.com/actions/runner-images/issues/6775
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Make tkey-ssh-agent
run: make tkey-ssh-agent -j
- name: Make Windows binaries
run: make windows
- name: Check for SPDX tags
run: ./tools/spdx-ensure
- name: Cache binaries
uses: actions/cache@v4
with:
path: |
tkey-ssh-agent.exe
tkey-ssh-agent-tray.exe
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-
build-msi:
needs: build
runs-on: ubuntu-latest
container:
image: ghcr.io/tillitis/msi-builder:1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Retrieve binaries from cache
uses: actions/cache@v4
with:
path: |
tkey-ssh-agent.exe
tkey-ssh-agent-tray.exe
key: ${{ runner.os }}-build-${{ needs.build.outputs.commit_sha }}
restore-keys: ${{ runner.os }}-build-
- name: Move files
run: |
ls -la
cp tkey-ssh-agent{,-tray}.exe system/windows/.
- name: Build MSI
working-directory: ./system/windows
run: |
./build-msi.sh 0.0.6 tkey-ssh-agent.wxs