Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed Nov 4, 2023
1 parent 73940a9 commit fc17feb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
# os: [ubuntu-latest, macos-latest, windows-latest] # Build for multiple OSes
os: [ubuntu-latest, macos-latest] # Build for multiple OSes
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- name: Build Release
run: cargo build --release

- name: Archive Release Binary (MacOS, Linux)
if: runner.os != 'windows-latest'
run: tar czvf ${{ runner.os }}-cpa.tar.gz -C ./target/release cpa
# - name: Archive Release Binary (MacOS, Linux)
# if: runner.os != 'windows-latest'
# run: tar czvf ${{ runner.os }}-cpa.tar.gz -C ./target/release cpa

# - name: Archive Release Binary (Windows)
# if: runner.os == 'windows-latest'
Expand All @@ -37,10 +37,11 @@ jobs:

- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
# if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ runner.os }}-cpa.tar.gz
./target/release/cpa
# ${{ runner.os }}-cpa.tar.gz
# windows-cpa.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ repos:
- markdown
exclude: templates/.pre-commit-config.yaml

##
#############################################################################
# Rust
##
#############################################################################
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
Expand Down

0 comments on commit fc17feb

Please sign in to comment.