Skip to content

Commit

Permalink
fixed macos release workflow #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sycrosity committed Sep 11, 2022
1 parent aec04e3 commit f202113
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: cargo build --release --locked #--target x86_64-unknown-linux-gnu
run: cargo build --release --locked
- name: Optimize and package binary
run: |
cd target/release
Expand All @@ -28,37 +28,6 @@ jobs:
asset_name: unknown-engine-${{ github.event.client_payload.new_version }}-linux-x86_64.tar.gz
tag: ${{ github.event.client_payload.new_version }}

# linux-musl-x86_64:
# name: Build and Release linux musl
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Install stable linux musl
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable-x86_64-linux-musl --force-non-host
# override: true
# # target: "x86_64-linux-musl"
# default: true
# - name: Build project
# run: |
# cargo build --release --locked
# #--target x86_64-unknown-linux-gnu
# - name: Optimize and package binary
# run: |
# cd target/release
# strip unknown-engine
# chmod +x unknown-engine
# tar -c unknown-engine | gzip > unknown-engine.tar.gz
# - name: Upload binary to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: target/release/x86_64-unknown-linux-musl/release/unknown-engine.tar.gz
# asset_name: unknown-engine-${{ github.event.client_payload.new_version }}-linux-musl-x86_64.tar.gz
# tag: ${{ github.event.client_payload.new_version }}

macosx-x86_64:
name: Build and Release macosx
runs-on: macos-latest
Expand All @@ -68,14 +37,13 @@ jobs:
- name: Build project
run: |
cp ./utils/cargo-bundle ~/.cargo/bin/cargo-bundle
cargo bundle --release --locked
# run: cargo build --release --locked #--target x86_64-apple-darwin
cargo bundle --release
- name: Optimize and package binary
run: |
cd target/release/bundle
ln -s /Applications osx
hdiutil create /tmp/tmp.dmg -ov -volname "UnknownEngineInstall" -fs HFS+ -srcfolder osx
convert /tmp/tmp.dmg -format UDZO -o unknown-engine.dmg
hdiutil convert /tmp/tmp.dmg -format UDZO -o unknown-engine.dmg
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
Expand All @@ -91,7 +59,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Build project
run: cargo build --release --locked #--target x86_64-pc-windows-gnu
run: cargo build --release --locked
- name: Optimize and package binary
run: |
cd target/release
Expand Down

0 comments on commit f202113

Please sign in to comment.