Skip to content

Commit b085967

Browse files
committed
chore: release 0.1.0
1 parent dfbce89 commit b085967

4 files changed

Lines changed: 34 additions & 28 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
merge-multiple: true
2727
- uses: actions/attest@v4
2828
with:
29-
subject-path: artifacts/*.tar.zst
29+
subject-path: artifacts/act-*
3030
- name: Create GitHub Release
3131
run: |
32-
gh release create ${{ github.ref_name }} artifacts/*.tar.zst \
32+
gh release create ${{ github.ref_name }} artifacts/act-* \
3333
--title "${{ github.ref_name }}" \
3434
--generate-notes
3535
env:

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ wasmtime-wasi-http = { version = "42", features = ["p3"] }
3333

3434
[dev-dependencies]
3535
tempfile = "3"
36+
37+
[profile.release]
38+
lto = "fat"
39+
codegen-units = 1
40+
strip = true
41+
opt-level = 3

setup/action.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ runs:
1919
shell: bash
2020
run: |
2121
case "${{ runner.os }}-${{ runner.arch }}" in
22-
Linux-X64) echo "asset=act-linux-x86_64.tar.zst" >> "$GITHUB_OUTPUT" ;;
23-
Linux-ARM64) echo "asset=act-linux-aarch64.tar.zst" >> "$GITHUB_OUTPUT" ;;
24-
macOS-*) echo "asset=act-macos-universal.tar.zst" >> "$GITHUB_OUTPUT" ;;
25-
Windows-X64) echo "asset=act-windows-x86_64.tar.zst" >> "$GITHUB_OUTPUT" ;;
26-
Windows-ARM64) echo "asset=act-windows-aarch64.tar.zst" >> "$GITHUB_OUTPUT" ;;
22+
Linux-X64) echo "asset=act-linux-x86_64" >> "$GITHUB_OUTPUT" ;;
23+
Linux-ARM64) echo "asset=act-linux-aarch64" >> "$GITHUB_OUTPUT" ;;
24+
macOS-*) echo "asset=act-macos-universal" >> "$GITHUB_OUTPUT" ;;
25+
Windows-X64) echo "asset=act-windows-x86_64.exe" >> "$GITHUB_OUTPUT" ;;
26+
Windows-ARM64) echo "asset=act-windows-aarch64.exe" >> "$GITHUB_OUTPUT" ;;
2727
*) echo "::error::Unsupported platform: ${{ runner.os }}-${{ runner.arch }}" && exit 1 ;;
2828
esac
2929
@@ -37,12 +37,13 @@ runs:
3737
3838
VERSION="${{ inputs.version }}"
3939
if [ "$VERSION" = "latest" ]; then
40-
gh release download --repo actcore/act-cli --pattern "${{ steps.detect.outputs.asset }}" --dir /tmp
40+
gh release download --repo actcore/act-cli --pattern "${{ steps.detect.outputs.asset }}" --dir "$INSTALL_DIR"
4141
else
42-
gh release download "$VERSION" --repo actcore/act-cli --pattern "${{ steps.detect.outputs.asset }}" --dir /tmp
42+
gh release download "$VERSION" --repo actcore/act-cli --pattern "${{ steps.detect.outputs.asset }}" --dir "$INSTALL_DIR"
4343
fi
4444
45-
tar --zstd -xf "/tmp/${{ steps.detect.outputs.asset }}" -C "$INSTALL_DIR"
45+
chmod +x "$INSTALL_DIR/${{ steps.detect.outputs.asset }}"
46+
mv "$INSTALL_DIR/${{ steps.detect.outputs.asset }}" "$INSTALL_DIR/act"
4647
echo "$INSTALL_DIR" >> "$GITHUB_PATH"
4748
4849
- name: Verify

0 commit comments

Comments
 (0)