-
Notifications
You must be signed in to change notification settings - Fork 352
52 lines (40 loc) · 1.25 KB
/
build-windows.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
name: Build for windows
on:
workflow_call:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- arch: x64
runner: windows-latest
- arch: ia32
runner: windows-latest
- arch: arm64
runner: windows-arm64
steps:
- uses: actions/checkout@v4
# See: https://github.com/orgs/community/discussions/131594
# The composite action requires bash which is not available on windows-arm64 runner.
# - uses: ./.github/util/initialize
# with: {github-token: "${{ github.token }}"}
- uses: dart-lang/setup-dart@v1
- uses: bufbuild/buf-setup-action@v1.30.0
with: {github_token: "${{ github.token }}"}
- name: Install Dependencies
run: dart pub get --verbose
- name: Compile Protobuf
run: dart run grinder protobuf
- name: Build
run: dart run grinder pkg-standalone-windows-${{ matrix.arch }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: build-windows-${{ matrix.arch }}
path: build/*.zip
if-no-files-found: error
compression-level: 0