-
Notifications
You must be signed in to change notification settings - Fork 25
47 lines (41 loc) · 1.14 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
name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
merge_group:
types: [checks_requested]
workflow_call:
outputs:
unsigned-artifact-id:
description: "Unsigned Installer"
value: ${{ jobs.build.outputs.unsigned-artifact-id }}
jobs:
build:
runs-on: windows-latest
name: Build
outputs:
unsigned-artifact-id: ${{ steps.upload-unsigned.outputs.artifact-id }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup rustup
run: rustup target add i686-pc-windows-msvc
- name: Build
run: scripts/build_installer.bat
- id: upload-unsigned
uses: actions/upload-artifact@v4
with:
name: Unsigned Installer
path: dist\windows-chewing-tsf-unsigned.exe
test-signing:
needs: [build]
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/workflows/code-signing.yml
with:
signing-policy-slug: test-signing
github-artifact-id: ${{ needs.build.outputs.unsigned-artifact-id }}
secrets:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}