diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4e39b77a..7c85350f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -96,18 +96,18 @@ jobs: to-file: stubr-linux.tar.gz args: --best --lzma strip: true - - os: macos-11 - file: stubr - from-file: ./target/release/stubr - to-file: stubr-macos.tar.gz - args: --best - strip: true - - os: windows-latest - file: stubr.exe - from-file: ./target/release/stubr.exe - to-file: stubr-windows.zip - args: -9 - strip: false +# - os: macos-11 +# file: stubr +# from-file: ./target/release/stubr +# to-file: stubr-macos.tar.gz +# args: --best +# strip: true +# - os: windows-latest +# file: stubr.exe +# from-file: ./target/release/stubr.exe +# to-file: stubr-windows.zip +# args: -9 +# strip: false runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -118,43 +118,43 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} - run: cargo build --release - - name: upx - uses: svenstaro/upx-action@2.3.0 - with: - file: ${{ matrix.from-file }} - args: ${{ matrix.args }} - strip: ${{ matrix.strip }} - continue-on-error: true - - name: compression/tar - if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-11' }} - run: | - cd target/release - tar czf ${{ matrix.to-file }} ${{ matrix.file }} - mv ${{ matrix.to-file }} ../.. - - name: compression/zip - if: ${{ matrix.os == 'windows-latest' }} - run: | - cd target/release - 7z a ${{ matrix.to-file }} ${{ matrix.file }} - mv ${{ matrix.to-file }} ../.. - - name: bench - if: ${{ matrix.os == 'ubuntu-latest' }} - run: | - mkdir -p target/criterion - cd target/criterion - curl -OL https://github.com/beltram/stubr/releases/download/0.3.1/bench.tar.gz - tar -xzf bench.tar.gz - rm bench.tar.gz - cargo bench - tar czf ../bench.tar.gz . - - name: release-assets - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - files: | - ${{ matrix.to-file }} - target/bench.tar.gz +# - name: upx +# uses: svenstaro/upx-action@2.3.0 +# with: +# file: ${{ matrix.from-file }} +# args: ${{ matrix.args }} +# strip: ${{ matrix.strip }} +# continue-on-error: true +# - name: compression/tar +# if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-11' }} +# run: | +# cd target/release +# tar czf ${{ matrix.to-file }} ${{ matrix.file }} +# mv ${{ matrix.to-file }} ../.. +# - name: compression/zip +# if: ${{ matrix.os == 'windows-latest' }} +# run: | +# cd target/release +# 7z a ${{ matrix.to-file }} ${{ matrix.file }} +# mv ${{ matrix.to-file }} ../.. +# - name: bench +# if: ${{ matrix.os == 'ubuntu-latest' }} +# run: | +# mkdir -p target/criterion +# cd target/criterion +# curl -OL https://github.com/beltram/stubr/releases/download/0.3.1/bench.tar.gz +# tar -xzf bench.tar.gz +# rm bench.tar.gz +# cargo bench +# tar czf ../bench.tar.gz . +# - name: release-assets +# uses: softprops/action-gh-release@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# files: | +# ${{ matrix.to-file }} +# target/bench.tar.gz publish: # runs on tags only @@ -192,7 +192,7 @@ jobs: # runs on tags only # if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest - needs: [ release ] +# needs: [ release ] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable