Skip to content

Commit

Permalink
ci: bleeding release for linux (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash authored Oct 9, 2024
1 parent b061a30 commit 6a46a83
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/bleeding-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
#
# For inquiries, you can contact us via e-mail at jichuruanjian@idea.edu.cn.

name: Bleeding Release Mac
name: Bleeding Release Unix

# trigger by moonc-version-dont-delete/.github/workflows/ci.yml when moonc merged PR

on:
workflow_dispatch:
Expand All @@ -25,7 +27,7 @@ jobs:
build:
strategy:
matrix:
os: [macos-latest]
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -38,8 +40,7 @@ jobs:
- name: Build
run: cargo build --release

- name: Bleeding Release (macos-latest)
if: ${{ matrix.os == 'macos-latest' }}
- name: Bleeding Release Unix
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -51,8 +52,8 @@ jobs:
tar xf moonbit.tar.gz --directory ./tmp-bins/
cp -L ./target/release/moonrun ./tmp-bins/
cp -L ./target/release/moon ./tmp-bins/
pushd tmp-bins && shasum -a 256 -- * >../moonbit-darwin-aarch64.sha256 && popd
tar czf ./moonbit-darwin-aarch64.tar.gz --directory=./tmp-bins .
aws s3 cp ./moonbit-darwin-aarch64.tar.gz s3://cli.moonbitlang.com/binaries/bleeding/moonbit-darwin-aarch64.tar.gz
aws s3 cp ./moonbit-darwin-aarch64.sha256 s3://cli.moonbitlang.com/binaries/bleeding/moonbit-darwin-aarch64.sha256
pushd tmp-bins && shasum -a 256 -- * >../moonbit-$(uname -s)-$(uname -m).sha256 && popd
tar czf ./moonbit-$(uname -s)-$(uname -m).tar.gz --directory=./tmp-bins .
aws s3 cp ./moonbit-$(uname -s)-$(uname -m).tar.gz s3://cli.moonbitlang.com/binaries/bleeding/moonbit-$(uname -s)-$(uname -m).tar.gz
aws s3 cp ./moonbit-$(uname -s)-$(uname -m).sha256 s3://cli.moonbitlang.com/binaries/bleeding/moonbit-$(uname -s)-$(uname -m).sha256
aws cloudfront create-invalidation --distribution-id E1KQYZEVEB0TAY --paths "/*"

0 comments on commit 6a46a83

Please sign in to comment.