@@ -40,31 +40,42 @@ jobs:
40
40
if : matrix.build == 'linux-musl'
41
41
- run : eng/build.sh ${{ matrix.target }}
42
42
shell : bash
43
+
43
44
- uses : actions/upload-artifact@v4
44
45
if : matrix.build == 'windows'
45
46
with :
46
47
name : ${{ matrix.build }}
47
- path : target/x86_64-pc-windows-msvc/release/az-pim.exe
48
+ path : |
49
+ target/x86_64-pc-windows-msvc/release/az-pim.exe
50
+ target/x86_64-pc-windows-msvc/release/dump-roles.exe
48
51
if-no-files-found : error
52
+
49
53
- uses : actions/upload-artifact@v4
50
54
if : matrix.build == 'macos'
51
55
with :
52
56
name : ${{ matrix.build }}
53
- path : target/aarch64-apple-darwin/release/az-pim
57
+ path : |
58
+ target/aarch64-apple-darwin/release/az-pim
59
+ target/aarch64-apple-darwin/release/dump-roles
54
60
if-no-files-found : error
61
+
55
62
- uses : actions/upload-artifact@v4
56
- if : startsWith( matrix.build, 'ubuntu-')
63
+ if : matrix.build == 'linux-musl'
57
64
with :
58
65
name : ${{ matrix.build }}
59
- path : target/x86_64-unknown-linux-gnu/debian/*.deb
66
+ path : |
67
+ target/x86_64-unknown-linux-musl/release/az-pim
68
+ target/x86_64-unknown-linux-musl/release/dump-roles
60
69
if-no-files-found : error
70
+
61
71
- uses : actions/upload-artifact@v4
62
- if : matrix.build == 'linux-musl'
72
+ if : startsWith( matrix.build, 'ubuntu-')
63
73
with :
64
74
name : ${{ matrix.build }}
65
- path : target/x86_64-unknown-linux-musl/release/az-pim
75
+ path : target/x86_64-unknown-linux-gnu/debian/*.deb
66
76
if-no-files-found : error
67
-
77
+
78
+
68
79
release :
69
80
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
70
81
needs : build
@@ -93,9 +104,12 @@ jobs:
93
104
run : |
94
105
set -ex
95
106
mv artifacts/macos/az-pim artifacts/macos/az-pim-macos-${VERSION}
107
+ mv artifacts/macos/dump-roles artifacts/macos/dump-roles-macos-${VERSION}
96
108
mv artifacts/windows/az-pim.exe artifacts/windows/az-pim-windows-${VERSION}.exe
109
+ mv artifacts/windows/dump-roles.exe artifacts/windows/dump-roles-windows-${VERSION}.exe
97
110
mv artifacts/linux-musl/az-pim artifacts/linux-musl/az-pim-linux-musl-${VERSION}
98
- for ubuntu_rev in 22.04 24.04; do
111
+ mv artifacts/linux-musl/dump-roles artifacts/linux-musl/dump-roles-linux-musl-${VERSION}
112
+ for ubuntu_rev in 24.04; do
99
113
for file in artifacts/ubuntu-${ubuntu_rev}/*.deb; do
100
114
mv "$file" "${file%.deb}_${ubuntu_rev}.deb"
101
115
done
0 commit comments