Skip to content

Commit

Permalink
Attempt macos
Browse files Browse the repository at this point in the history
  • Loading branch information
outkine committed Mar 29, 2024
1 parent fbb95b6 commit 7126293
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
on:
release:
types: [created]
push:
branches: [master]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -39,20 +41,20 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu
cargoargs: --features build-llvm,jemalloc
# - os: ubuntu
# cargoargs: --features build-llvm,jemalloc
- os: macos
cargoargs: --features build-cranelift,jemalloc
- os: windows
cargoargs: --features build-cranelift,mimalloc
cargoargs: --features build-llvm,jemalloc
# - os: windows
# cargoargs: --features build-cranelift,mimalloc

steps:
- uses: actions/checkout@v2

- id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - id: get_release
# uses: bruceadams/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/cache@v2
with:
Expand Down Expand Up @@ -97,28 +99,28 @@ jobs:
sudo apt update
sudo apt install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang
- run: cargo build --release --no-default-features ${{matrix.cargoargs}}
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

- if: matrix.os == 'windows'
run: |
mkdir release
cp -Path target/release/rumblebot.exe -Destination release
cp -Path README.md -Destination release
- if: matrix.os == 'macos' || matrix.os == 'ubuntu'
run: |
mkdir release
cp target/release/rumblebot release
cp README.md release
- run: 7z a release.zip ./release/*
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: release.zip
asset_name: rumblebot-${{ matrix.os }}.zip
asset_content_type: application/zip
# - run: cargo build --release --no-default-features ${{matrix.cargoargs}}
# env:
# SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

# - if: matrix.os == 'windows'
# run: |
# mkdir release
# cp -Path target/release/rumblebot.exe -Destination release
# cp -Path README.md -Destination release

# - if: matrix.os == 'macos' || matrix.os == 'ubuntu'
# run: |
# mkdir release
# cp target/release/rumblebot release
# cp README.md release

# - run: 7z a release.zip ./release/*
# - uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.get_release.outputs.upload_url }}
# asset_path: release.zip
# asset_name: rumblebot-${{ matrix.os }}.zip
# asset_content_type: application/zip

0 comments on commit 7126293

Please sign in to comment.