-
Notifications
You must be signed in to change notification settings - Fork 2.4k
81 lines (79 loc) · 3.18 KB
/
build.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
70
71
72
73
74
75
76
77
78
79
80
81
name: Build
on:
push:
branches:
- v2
jobs:
test:
runs-on: [ self-hosted, macOS, ARM64 ]
steps:
- uses: actions/checkout@v3
- name: Test
run: just test
# build-macos-amd64:
# needs: test
# runs-on: [ self-hosted, macOS, X64 ]
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: just release darwin-amd64
# - name: Deploy nightly release amd64
# uses: WebFreak001/[email protected]
# with:
# upload_url: https://uploads.github.com/repos/Wox-launcher/Wox/releases/127182165/assets{?name,label}
# release_id: 127182165
# asset_path: ./Release/wox-mac-amd64.dmg # path to archive to upload
# asset_name: wox-mac-amd64-$$.dmg # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
# asset_content_type: application/x-elf # required by GitHub API
# max_releases: 1
build-macos-arm64:
needs: test
runs-on: [ self-hosted, macOS, ARM64 ]
steps:
- uses: actions/checkout@v3
- name: Build
run: just release darwin-arm64
- name: Deploy nightly release arm64
uses: WebFreak001/[email protected]
with:
upload_url: https://uploads.github.com/repos/Wox-launcher/Wox/releases/127182165/assets{?name,label}
release_id: 127182165
asset_path: ./Release/wox-mac-arm64.dmg # path to archive to upload
asset_name: wox-mac-arm64-$$.dmg # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/x-elf # required by GitHub API
max_releases: 1
build-windows:
needs: test
runs-on: [ self-hosted, Windows ]
steps:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v3
- name: Build
run: just release windows
- name: Deploy nightly release
uses: WebFreak001/[email protected]
with:
upload_url: https://uploads.github.com/repos/Wox-launcher/Wox/releases/127182165/assets{?name,label}
release_id: 127182165
asset_path: ./Release/wox-windows-amd64.exe # path to archive to upload
asset_name: wox-windows-amd64-$$.exe # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/x-msdownload # required by GitHub API
max_releases: 1
build-linux:
needs: test
runs-on: [ self-hosted, Linux ]
steps:
- uses: actions/checkout@v3
- name: Build
run: just release linux
- name: Deploy nightly release
uses: WebFreak001/[email protected]
with:
upload_url: https://uploads.github.com/repos/Wox-launcher/Wox/releases/127182165/assets{?name,label}
release_id: 127182165
asset_path: ./Release/wox-linux-amd64 # path to archive to upload
asset_name: wox-linux-amd64-$$ # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/x-msdownload # required by GitHub API
max_releases: 1