File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
7
7
jobs :
8
+ get-version :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Trim commit SHA
12
+ id : trim_sha
13
+ run : echo "trimmed_sha='r$(echo ${{ github.sha }} | cut -c1-7)'" >> $GITHUB_ENV
8
14
build :
9
15
strategy :
10
16
matrix :
11
17
include :
12
18
- job-name : Windows x86_64
13
19
target : x86_64-pc-windows-msvc
14
20
runs-on : windows-latest
15
- artifact-name : pesde-debug-${{ github.sha }}-windows-x86_64
21
+ artifact-name : pesde-debug-${{ needs.get-version.outputs.trimmed_sha }}-windows-x86_64
16
22
17
23
- job-name : Linux x86_64
18
24
target : x86_64-unknown-linux-gnu
19
25
runs-on : ubuntu-latest
20
- artifact-name : pesde-debug-${{ github.sha }}-linux-x86_64
26
+ artifact-name : pesde-debug-${{ needs.get-version.outputs.trimmed_sha }}-linux-x86_64
21
27
22
28
- job-name : macOS x86_64
23
29
target : x86_64-apple-darwin
24
30
runs-on : macos-13
25
- artifact-name : pesde-debug-${{ github.sha }}-macos-x86_64
31
+ artifact-name : pesde-debug-${{ needs.get-version.outputs.trimmed_sha }}-macos-x86_64
26
32
27
33
- job-name : macOS aarch64
28
34
target : aarch64-apple-darwin
29
35
runs-on : macos-latest
30
- artifact-name : pesde-debug-${{ github.sha }}-macos-aarch64
36
+ artifact-name : pesde-debug-${{ needs.get-version.outputs.trimmed_sha }}-macos-aarch64
31
37
32
38
name : Build for ${{ matrix.job-name }}
33
39
runs-on : ${{ matrix.runs-on }}
34
-
40
+ needs : get-version
35
41
steps :
36
42
- name : Checkout
37
43
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments