Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 11, 2024
1 parent 7dae905 commit ef0f5c7
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: jart/cosmopolitan
path: cosmopolitan
- working-directory: cosmopolitan
run: |
./tool/cosmocc/package.sh
echo "$PWD/cosmocc/bin" >> "$GITHUB_PATH"
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
sudo chmod +x /usr/bin/ape
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
- env:
TAGVER: ${{ needs.tagver.outputs.tagver }}
run: |
Expand Down Expand Up @@ -53,31 +65,12 @@ jobs:
- run: ./build-zig-ape
- env:
TAGVER: ${{ needs.tagver.outputs.tagver }}
run: |
tar cJf zig-linux-aarch64-$TAGVER.tar.xz zig-linux-aarch64-$TAGVER/
tar cJf zig-linux-armv7a-$TAGVER.tar.xz zig-linux-armv7a-$TAGVER/
tar cJf zig-linux-i386-$TAGVER.tar.xz zig-linux-i386-$TAGVER/
tar cJf zig-linux-riscv64-$TAGVER.tar.xz zig-linux-riscv64-$TAGVER/
tar cJf zig-linux-x86_64-$TAGVER.tar.xz zig-linux-x86_64-$TAGVER/
#7z a zig-windows-i386-$TAGVER.zip zig-windows-i386-$TAGVER/
7z a zig-windows-x86_64-$TAGVER.zip zig-windows-x86_64-$TAGVER/
7z a zig-windows-aarch64-$TAGVER.zip zig-windows-aarch64-$TAGVER/
tar cJf zig-macos-aarch64-$TAGVER.tar.xz zig-macos-aarch64-$TAGVER/
tar cJf zig-macos-x86_64-$TAGVER.tar.xz zig-macos-x86_64-$TAGVER/
tar cJf zig-freebsd-x86_64-$TAGVER.tar.xz zig-freebsd-x86_64-$TAGVER/
7z a zig-ape-$TAGVER.zip zig-ape-$TAGVER/
run: 7z a zig-ape-$TAGVER.zip zig-ape-$TAGVER/
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAGVER: ${{ needs.tagver.outputs.tagver }}
run: |
gh release create "$TAGVER" \
--title "$TAGVER" \
--notes "https://ziglang.org/download/#release-$TAGVER" \
"zig-windows-x86_64-$TAGVER.zip" \
"zig-windows-aarch64-$TAGVER.zip" \
"zig-macos-aarch64-$TAGVER.tar.xz" \
"zig-macos-x86_64-$TAGVER.tar.xz" \
"zig-linux-x86_64-$TAGVER.tar.xz" \
"zig-linux-aarch64-$TAGVER.tar.xz" \
"zig-freebsd-x86_64-$TAGVER.tar.xz" \
"zig-ape-$TAGVER.zip"

0 comments on commit ef0f5c7

Please sign in to comment.