Skip to content

Commit

Permalink
fix bleeding release no mooncake (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash authored Oct 24, 2024
1 parent e4ba592 commit 9445d0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bleeding-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ jobs:
rm -rf tmp-bins
mkdir tmp-bins
curl https://cli.moonbitlang.com/moon-ci/$(uname -s)-$(uname -m).tar.gz --output moonbit.tar.gz
curl https://cli.moonbitlang.com/moon-ci/$(uname -s)-$(uname -m)/mooncake --output mooncake
tar xf moonbit.tar.gz --directory ./tmp-bins/
cp -L ./target/release/moonrun ./tmp-bins/
cp -L ./target/release/moon ./tmp-bins/
cp -L ./mooncake ./tmp-bins/
ls ./tmp-bins/
pushd tmp-bins && shasum -a 256 -- * >../moonbit-$PLATFORM.sha256 && popd
tar czf ./moonbit-$PLATFORM.tar.gz --directory=./tmp-bins .
Expand All @@ -83,9 +85,11 @@ jobs:
Remove-Item -Recurse -Force tmp-bins -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force -Path tmp-bins
Invoke-WebRequest -Uri "https://cli.moonbitlang.com/moon-ci/Windows-x86_64.zip" -OutFile moonbit.zip
Invoke-WebRequest -Uri "https://cli.moonbitlang.com/moon-ci/Windows-x86_64/mooncake.exe" -OutFile mooncake.exe
Expand-Archive -Path moonbit.zip -DestinationPath .\tmp-bins
Copy-Item .\target\release\moonrun.exe .\tmp-bins
Copy-Item .\target\release\moon.exe .\tmp-bins
Copy-Item .\mooncake.exe .\tmp-bins
Get-ChildItem .\tmp-bins
Push-Location tmp-bins
Get-FileHash -Algorithm SHA256 * | ForEach-Object { $_.Hash + " " + $_.Path.Split("\")[-1] } | Out-File -FilePath ..\moonbit-windows-x86_64.sha256 -Encoding utf8
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ jobs:
rm -rf tmp-bins
mkdir tmp-bins
curl https://cli.moonbitlang.com/moon-ci/$(uname -s)-$(uname -m).tar.gz --output moonbit.tar.gz
curl https://cli.moonbitlang.com/moon-ci/$(uname -s)-$(uname -m)/mooncake --output mooncake
tar xf moonbit.tar.gz --directory ./tmp-bins/
cp -L ./target/release/moonrun ./tmp-bins/
cp -L ./target/release/moon ./tmp-bins/
cp -L ./mooncake ./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
Expand Down Expand Up @@ -146,9 +148,11 @@ jobs:
rm -rf tmp-bins
mkdir tmp-bins
curl https://cli.moonbitlang.com/moon-ci/$(uname -s)-$(uname -m).tar.gz --output moonbit.tar.gz
curl https://cli.moonbitlang.com/moon-ci/$(uname -s)-$(uname -m)/mooncake --output mooncake
tar xf moonbit.tar.gz --directory ./tmp-bins/
cp -L ./target/release/moonrun ./tmp-bins/
cp -L ./target/release/moon ./tmp-bins/
cp -L ./mooncake ./tmp-bins/
cd tmp-bins && sha256sum -- * >../moonbit-linux-x86_64.sha256 && cd ..
tar czf ./moonbit-linux-x86_64.tar.gz --directory=./tmp-bins .
aws s3 cp ./moonbit-linux-x86_64.tar.gz s3://cli.moonbitlang.com/binaries/bleeding/moonbit-linux-x86_64.tar.gz
Expand Down

0 comments on commit 9445d0b

Please sign in to comment.