From 5da8496c5c2ec3533db8db8f761d038cfdf4370a Mon Sep 17 00:00:00 2001 From: Axetroy Date: Sun, 19 May 2024 15:11:05 +0800 Subject: [PATCH] refactor: update ci --- .github/workflows/build.yml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da624a6..f42b5a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,119 +48,102 @@ jobs: artifact_name: cask cross: true strip: true - compress: true cargo_flags: "" - os: ubuntu-latest target: x86_64-unknown-linux-gnu artifact_name: cask cross: true strip: true - compress: true cargo_flags: "" - os: ubuntu-latest target: aarch64-unknown-linux-musl artifact_name: cask cross: true strip: false - compress: true cargo_flags: "" - os: ubuntu-latest target: aarch64-unknown-linux-gnu artifact_name: cask cross: true strip: false - compress: true cargo_flags: "" - os: ubuntu-latest target: armv7-unknown-linux-musleabihf artifact_name: cask cross: true strip: false - compress: true cargo_flags: "" - os: ubuntu-latest target: arm-unknown-linux-musleabihf artifact_name: cask cross: true strip: false - compress: true cargo_flags: "" # - os: ubuntu-latest # target: mips-unknown-linux-musl # artifact_name: cask # cross: true # strip: false - # compress: false # cargo_flags: "--no-default-features" # - os: ubuntu-latest # target: mipsel-unknown-linux-musl # artifact_name: cask # cross: true # strip: false - # compress: true # cargo_flags: "--no-default-features" # - os: ubuntu-latest # target: mips64-unknown-linux-gnuabi64 # artifact_name: cask # cross: true # strip: false - # compress: false # cargo_flags: "--no-default-features" # - os: ubuntu-latest # target: mips64el-unknown-linux-gnuabi64 # artifact_name: cask # cross: true # strip: false - # compress: false # cargo_flags: "--no-default-features" - os: ubuntu-latest target: riscv64gc-unknown-linux-gnu artifact_name: cask cross: true strip: false - compress: false cargo_flags: "--no-default-features" - os: windows-latest target: i686-pc-windows-msvc artifact_name: cask.exe cross: true strip: true - compress: false cargo_flags: "--no-default-features" - os: windows-latest target: x86_64-pc-windows-msvc artifact_name: cask.exe cross: false strip: true - compress: true cargo_flags: "" - os: windows-latest target: aarch64-pc-windows-msvc artifact_name: cask.exe cross: true strip: true - compress: false cargo_flags: "--no-default-features" - os: macos-latest target: x86_64-apple-darwin artifact_name: cask cross: false strip: true - compress: true cargo_flags: "" - os: macos-latest target: aarch64-apple-darwin artifact_name: cask cross: false strip: true - compress: false cargo_flags: "" - os: ubuntu-latest target: x86_64-unknown-freebsd artifact_name: cask cross: true strip: false - compress: false cargo_flags: "" env: @@ -185,14 +168,6 @@ jobs: args: --release --locked --target=${{ matrix.target }} ${{ matrix.cargo_flags }} use-cross: ${{ matrix.cross }} - - name: Compress binaries - uses: svenstaro/upx-action@v2 - with: - file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }} - args: --lzma - strip: ${{ matrix.strip }} - if: ${{ matrix.compress }} - - name: Create archive run: tar -cvzf target/${{ matrix.target }}/release/cask-${{ matrix.target }}.tar.gz --directory=target/${{ matrix.target }}/release ${{ matrix.artifact_name }}