File tree 9 files changed +740
-690
lines changed
9 files changed +740
-690
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ name : Build for linux
2
+
3
+ on :
4
+ workflow_call :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ build :
9
+ name : Build
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ include :
17
+ - arch : x64
18
+ platform : linux/amd64
19
+ - arch : ia32
20
+ platform : linux/amd64
21
+ - arch : arm
22
+ platform : linux/arm/v7
23
+ - arch : arm64
24
+ platform : linux/arm64
25
+
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+
29
+ - name : Set up QEMU
30
+ uses : docker/setup-qemu-action@v3
31
+
32
+ - name : Compile Protobuf
33
+ run : |
34
+ docker run --rm -i \
35
+ --volume "$PWD:$PWD" \
36
+ --workdir "$PWD" \
37
+ docker.io/library/dart <<'EOF'
38
+ set -e
39
+ curl -fsSL -H "Authorization: Bearer ${{ github.token }}" "https://github.com/bufbuild/buf/releases/latest/download/buf-$(uname -s)-$(uname -m).tar.gz" | tar -xzC /usr/local --strip-components 1
40
+ dart pub get
41
+ dart run grinder protobuf
42
+ EOF
43
+
44
+ - name : Build
45
+ run : |
46
+ docker run --rm -i \
47
+ --platform ${{ matrix.platform }} \
48
+ --volume "$PWD:$PWD" \
49
+ --workdir "$PWD" \
50
+ docker.io/library/dart:latest <<'EOF'
51
+ set -e
52
+ dart pub get
53
+ dart run grinder pkg-standalone-linux-${{ matrix.arch }}
54
+ EOF
55
+
56
+ - name : Upload Artifact
57
+ uses : actions/upload-artifact@v4
58
+ with :
59
+ name : build-linux-${{ matrix.arch }}
60
+ path : build/*.tar.gz
61
+ if-no-files-found : error
62
+ compression-level : 0
Original file line number Diff line number Diff line change
1
+ name : Build for macos
2
+
3
+ on :
4
+ workflow_call :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ build :
9
+ name : Build
10
+
11
+ runs-on : ${{ matrix.runner }}
12
+
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ include :
17
+ - arch : x64
18
+ runner : macos-latest
19
+ # https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/
20
+ - arch : arm64
21
+ runner : macos-latest-xlarge
22
+
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+
26
+ - uses : ./.github/util/initialize
27
+
28
+ - name : Build
29
+ run : dart run grinder pkg-standalone-macos-${{ matrix.arch }}
30
+
31
+ - name : Upload Artifact
32
+ uses : actions/upload-artifact@v4
33
+ with :
34
+ name : build-macos-${{ matrix.arch }}
35
+ path : build/*.tar.gz
36
+ if-no-files-found : error
37
+ compression-level : 0
Original file line number Diff line number Diff line change
1
+ name : Build for windows
2
+
3
+ on :
4
+ workflow_call :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ build :
9
+ name : Build
10
+
11
+ runs-on : ${{ matrix.runner }}
12
+
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ include :
17
+ - arch : x64
18
+ runner : windows-latest
19
+ - arch : ia32
20
+ runner : windows-latest
21
+ # - arch: arm64
22
+ # runner: windows-latest
23
+
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+
27
+ - uses : ./.github/util/initialize
28
+
29
+ - name : Build
30
+ run : dart run grinder pkg-standalone-windows-${{ matrix.arch }}
31
+
32
+ - name : Upload Artifact
33
+ uses : actions/upload-artifact@v4
34
+ with :
35
+ name : build-windows-${{ matrix.arch }}
36
+ path : build/*.zip
37
+ if-no-files-found : error
38
+ compression-level : 0
You can’t perform that action at this time.
0 commit comments