-
Notifications
You must be signed in to change notification settings - Fork 30
113 lines (97 loc) · 3.19 KB
/
release.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
uses: ./.github/workflows/ci.yaml
create_release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: create_release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: true
release_assets:
needs: create_release
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: ubuntu-latest
- os: windows-latest
- {
os: macos-latest,
arch: amd64
}
- {
os: macos-latest,
arch: aarch64,
extraArgs: "--target aarch64-apple-darwin"
}
steps:
- uses: actions/checkout@v1
- uses: actions/download-artifact@v3
with:
name: c-template.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}
- uses: actions/download-artifact@v3
with:
name: rust-template.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}
- uses: actions/download-artifact@v3
with:
name: js-template.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}
- uses: actions/download-artifact@v3
with:
name: slight-linux-x86_64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}
- name: "add wits, and slight-linux-x86_64 and templates tars to release"
uses: softprops/action-gh-release@v1
with:
files: |
slight-linux-x86_64.tar.gz
*-template.tar.gz
wit/*.wit
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}
- uses: actions/download-artifact@v3
with:
name: slight-windows-x86_64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'windows-latest') }}
- name: "add slight-windows tar to release"
uses: softprops/action-gh-release@v1
with:
files: |
slight-windows-x86_64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'windows-latest') }}
- uses: actions/download-artifact@v3
with:
name: slight-macos-amd64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'amd64') }}
- name: "add slight-macos-amd64 tar to release"
uses: softprops/action-gh-release@v1
with:
files: |
slight-macos-amd64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'amd64') }}
- uses: actions/download-artifact@v3
with:
name: slight-macos-aarch64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'aarch64') }}
- name: "add slight-macos-aarch64 tar to release"
uses: softprops/action-gh-release@v1
with:
files: |
slight-macos-aarch64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'aarch64') }}