18
18
type : string
19
19
required : false
20
20
default : " 10"
21
- run_rust_tests :
22
- description : Run Rust tests (generally this is not required as the PR check will run full Rust tests)
23
- type : boolean
24
- required : false
25
- default : false
26
21
27
22
# Use a manual approval process before PR's are given access to
28
23
# the secrets which are required to run the integration tests.
@@ -57,49 +52,60 @@ jobs:
57
52
- riscv64gc-unknown-linux-gnu
58
53
- aarch64-apple-darwin
59
54
- x86_64-apple-darwin
60
- mode :
61
- - --release
62
55
63
56
rust_channel :
64
57
- " 1.78"
65
58
66
59
include :
67
60
- target : aarch64-unknown-linux-musl
61
+ build_with : auto
68
62
host_os : ubuntu-22.04
69
63
cargo_options : --no-run
70
64
71
65
- target : armv7-unknown-linux-musleabihf
66
+ build_with : auto
72
67
host_os : ubuntu-22.04
73
68
cargo_options : --no-run
74
69
75
70
- target : arm-unknown-linux-musleabihf
71
+ build_with : auto
76
72
host_os : ubuntu-22.04
77
73
cargo_options : --no-run
78
74
79
75
- target : arm-unknown-linux-musleabi
76
+ build_with : auto
80
77
host_os : ubuntu-22.04
81
78
cargo_options : --no-run
82
79
83
80
- target : armv5te-unknown-linux-musleabi
81
+ build_with : clang
84
82
host_os : ubuntu-22.04
85
83
cargo_options : --no-run
86
84
87
85
- target : x86_64-unknown-linux-musl
86
+ build_with : auto
88
87
host_os : ubuntu-22.04
89
88
90
89
- target : i686-unknown-linux-musl
90
+ build_with : auto
91
91
host_os : ubuntu-22.04
92
92
cargo_options : --no-run
93
93
94
+ # Note: riscv64gc-unknown-linux-musl is meant to be supported from 1.82
95
+ # but there are still some build problems which prevent it from being used.
96
+ # So stick to gnu build only
94
97
- target : riscv64gc-unknown-linux-gnu
98
+ build_with : auto
95
99
host_os : ubuntu-22.04
96
100
cargo_options : --no-run
97
101
98
102
- target : aarch64-apple-darwin
103
+ build_with : clang
99
104
host_os : macos-14
100
105
cargo_options : --no-run
101
106
102
107
- target : x86_64-apple-darwin
108
+ build_with : clang
103
109
host_os : macos-14
104
110
105
111
steps :
@@ -112,28 +118,17 @@ jobs:
112
118
ref : ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }}
113
119
fetch-depth : 0
114
120
115
- - run : mk/install-build-tools.sh +${{ matrix.rust_channel }} --target=${{ matrix.target }}
116
- shell : sh
117
- - name : Build
118
- run : |
119
- . ./ci/build_scripts/version.sh
120
- mk/cargo.sh +${{ matrix.rust_channel }} build --target=${{ matrix.target }} ${{ matrix.mode }}
121
-
122
- - if : ${{ inputs.run_rust_tests && !contains(matrix.host_os, 'windows') }}
123
- name : Test
124
- run : |
125
- mk/cargo.sh +${{ matrix.rust_channel }} test -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.mode }} --no-fail-fast --locked --all-features --all-targets
126
-
127
121
# Install nfpm used to for linux packaging
128
122
- uses : actions/setup-go@v5
129
123
with :
130
124
go-version : ' stable'
131
125
cache : false
132
126
- run : go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
133
127
134
- - name : Package
128
+ - uses : taiki-e/install-action@just
129
+ - name : build
135
130
run : |
136
- ./ci/build_scripts/build.sh ${{ matrix.target }} --skip-build --skip-deprecated-packages
131
+ just release ${{ matrix.target }} --toolchain ${{ matrix.rust_channel }} --build-with ${{ matrix.build_with }}
137
132
138
133
- name : Upload packages as zip
139
134
# https://github.com/marketplace/actions/upload-a-build-artifact
0 commit comments