Skip to content

Commit

Permalink
update dependency and make release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
guuzaa committed Sep 9, 2024
1 parent 1504a5a commit d706857
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 116 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
name: Build Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
rust: stable
targets:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- i686-unknown-linux-musl
- aarch64-unknown-linux-musl
- arm-unknown-linux-musleabihf
- os: macos-latest
targets:
- x86_64-apple-darwin
- aarch64-apple-darwin
- os: windows-latest
targets:
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- aarch64-pc-windows-msvc
- os: ubuntu-latest
targets:
- x86_64-unknown-freebsd

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Add targets
run: |
for target in ${{ join(matrix.targets, ' ') }}; do
rustup target add $target
done
- name: Build
run: |
for target in ${{ join(matrix.targets, ' ') }}; do
cargo build --release --target $target
mv target/$target/release/wc target/$target/release/wc-$target
done
- name: Upload artifacts
uses: AButler/[email protected]
with:
files: target/*/release/wc-*
repo-token: ${{ secrets.GITHUB_TOKEN }}
115 changes: 0 additions & 115 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ edition = "2021"

[dependencies]
clap = { version = "4.3", features = ["derive"] }
tokio = { version = "1.38.0", features = ["full"] }
tokio = { version = "1.40.0", features = ["fs", "io-util", "rt-multi-thread", "macros", "io-std"] }

0 comments on commit d706857

Please sign in to comment.