Skip to content

Commit 7e140d4

Browse files
authored
add dump-roles to build artifacts (#192)
1 parent f067094 commit 7e140d4

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,42 @@ jobs:
4040
if: matrix.build == 'linux-musl'
4141
- run: eng/build.sh ${{ matrix.target }}
4242
shell: bash
43+
4344
- uses: actions/upload-artifact@v4
4445
if: matrix.build == 'windows'
4546
with:
4647
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
4851
if-no-files-found: error
52+
4953
- uses: actions/upload-artifact@v4
5054
if: matrix.build == 'macos'
5155
with:
5256
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
5460
if-no-files-found: error
61+
5562
- uses: actions/upload-artifact@v4
56-
if: startsWith(matrix.build, 'ubuntu-')
63+
if: matrix.build == 'linux-musl'
5764
with:
5865
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
6069
if-no-files-found: error
70+
6171
- uses: actions/upload-artifact@v4
62-
if: matrix.build == 'linux-musl'
72+
if: startsWith(matrix.build, 'ubuntu-')
6373
with:
6474
name: ${{ matrix.build }}
65-
path: target/x86_64-unknown-linux-musl/release/az-pim
75+
path: target/x86_64-unknown-linux-gnu/debian/*.deb
6676
if-no-files-found: error
67-
77+
78+
6879
release:
6980
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
7081
needs: build
@@ -93,9 +104,12 @@ jobs:
93104
run: |
94105
set -ex
95106
mv artifacts/macos/az-pim artifacts/macos/az-pim-macos-${VERSION}
107+
mv artifacts/macos/dump-roles artifacts/macos/dump-roles-macos-${VERSION}
96108
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
97110
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
99113
for file in artifacts/ubuntu-${ubuntu_rev}/*.deb; do
100114
mv "$file" "${file%.deb}_${ubuntu_rev}.deb"
101115
done

0 commit comments

Comments
 (0)