Skip to content

Commit

Permalink
refactor: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed May 19, 2024
1 parent 8374f83 commit 5da8496
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand Down

0 comments on commit 5da8496

Please sign in to comment.