-
Notifications
You must be signed in to change notification settings - Fork 2
185 lines (172 loc) Β· 5.54 KB
/
release.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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
name: Release
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- "main"
- "develop"
jobs:
integration-tests:
name: "π§ͺ Integration Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-just
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/build-mach
with: { profile: debug }
- name: "Integration tests"
run: |
source .github/actions/setup-env/setup-env.bash
just test-integration
unit-tests:
name: "π§ͺ Unit Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-just
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/build-mach
with: { profile: debug }
- name: "Unit tests"
run: |
source .github/actions/setup-env/setup-env.bash
just test-unit
benchmarks-micro:
name: "ποΈ Benchmarks Micro"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-just
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/build-mach
- name: "Benchmarks (Micro)"
run: |
source .github/actions/setup-env/setup-env.bash
just bench-micro
build:
strategy:
matrix:
config:
- name: π₯ Linux AMD64
os: linux
arch: amd64
runner: ubuntu-latest
- name: π₯ Linux ARM64
os: linux
arch: arm64
runner: ubuntu-latest
- name: π MacOS AMD64
os: macos
arch: amd64
runner: macos-13
- name: π MacOS ARM64
os: macos
arch: arm64
runner: macos-14
- name: π¦ Windows AMD64
os: windows
arch: amd64
runner: windows-latest
- name: π¦ Windows ARM64
os: windows
arch: arm64
runner: windows-latest
name: "${{ matrix.config.name }}"
runs-on: ${{ matrix.config.runner }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-just
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-mach
with:
os: "${{ matrix.config.os }}"
arch: "${{ matrix.config.arch }}"
- uses: actions/upload-artifact@v4
with:
name: mach-${{ matrix.config.os }}-${{ matrix.config.arch }}
path: ${{ github.workspace }}/artifacts/**/*
if-no-files-found: error
retention-days: 1
npm-package:
name: "π¦ NPM"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-just
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-npm
- uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}
path: ${{ github.workspace }}/artifacts/**/*
if-no-files-found: error
retention-days: 1
publish-github-release:
name: "π Github Release"
runs-on: ubuntu-latest
needs: [unit-tests,integration-tests, benchmarks-micro, npm-package, build]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-env
- uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/artifacts
- name: Publish` Github Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo TEMP: Skip for now
exit 0
source .github/actions/setup-env/setup-env.bash
bash .github/workflows/release/publish-github-release.bash
publish-npm-package:
name: "π Publish: NPM"
runs-on: ubuntu-latest
needs: [unit-tests, integration-tests, benchmarks-micro, npm-package, build]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-env
- uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/artifacts
- name: Publish NPM Package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo TEMP: Skip for now
exit 0
source .github/actions/setup-env/setup-env.bash
bash .github/workflows/release/publish-npm-package.bash
publish-crate:
name: "π Publish: Crates.io"
runs-on: ubuntu-latest
needs: [unit-tests, integration-tests, benchmarks-micro, npm-package, build]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-just
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-rust
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-mach
- name: Publish Crate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
run: |
echo TEMP: Skip for now
exit 0
source .github/actions/setup-env/setup-env.bash
bash .github/workflows/release/publish-crate.bash