@@ -15,16 +15,20 @@ jobs:
1515 include :
1616 - name : linux-x86_64
1717 os : ubuntu-latest
18- artifact : act
18+ src : act
19+ dest : act-linux-x86_64
1920 - name : linux-aarch64
2021 os : ubuntu-24.04-arm
21- artifact : act
22+ src : act
23+ dest : act-linux-aarch64
2224 - name : windows-x86_64
2325 os : windows-latest
24- artifact : act.exe
26+ src : act.exe
27+ dest : act-windows-x86_64.exe
2528 - name : windows-aarch64
2629 os : windows-11-arm
27- artifact : act.exe
30+ src : act.exe
31+ dest : act-windows-aarch64.exe
2832 steps :
2933 - uses : actions/checkout@v6
3034 with :
@@ -33,15 +37,13 @@ jobs:
3337 - uses : Swatinem/rust-cache@v2
3438 - name : Build
3539 run : cargo build --release
36- - name : Package
40+ - name : Rename
3741 shell : bash
38- run : |
39- cd target/release
40- tar --zstd -cf ../../act-${{ matrix.name }}.tar.zst ${{ matrix.artifact }}
42+ run : cp target/release/${{ matrix.src }} ${{ matrix.dest }}
4143 - uses : actions/upload-artifact@v7
4244 with :
43- name : act- ${{ matrix.name }}
44- path : act- ${{ matrix.name }}.tar.zst
45+ name : ${{ matrix.dest }}
46+ path : ${{ matrix.dest }}
4547
4648 macos-universal :
4749 name : Build (macos-universal)
@@ -65,12 +67,11 @@ jobs:
6567 lipo -create \
6668 target/aarch64-apple-darwin/release/act \
6769 target/x86_64-apple-darwin/release/act \
68- -output act
69- tar --zstd -cf act-macos-universal.tar.zst act
70+ -output act-macos-universal
7071 - uses : actions/upload-artifact@v7
7172 with :
7273 name : act-macos-universal
73- path : act-macos-universal.tar.zst
74+ path : act-macos-universal
7475
7576 zigbuild :
7677 name : Build (${{ matrix.name }})
@@ -100,11 +101,9 @@ jobs:
100101 - uses : taiki-e/install-action@cargo-zigbuild
101102 - name : Build
102103 run : cargo zigbuild --release --target ${{ matrix.target }}
103- - name : Package
104- run : |
105- cd target/${{ matrix.target }}/release
106- tar --zstd -cf ../../../act-${{ matrix.name }}.tar.zst act
104+ - name : Rename
105+ run : cp target/${{ matrix.target }}/release/act act-${{ matrix.name }}
107106 - uses : actions/upload-artifact@v7
108107 with :
109108 name : act-${{ matrix.name }}
110- path : act-${{ matrix.name }}.tar.zst
109+ path : act-${{ matrix.name }}
0 commit comments