From 7126293698322795d7063cd994cf970f1bd0c374 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 29 Mar 2024 13:18:20 -0500 Subject: [PATCH] Attempt macos --- .github/workflows/release.yml | 70 ++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf97754..c865094 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ on: release: types: [created] + push: + branches: [master] env: CARGO_TERM_COLOR: always @@ -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/get-release@v1.2.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - id: get_release + # uses: bruceadams/get-release@v1.2.0 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/cache@v2 with: @@ -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