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 e0208a4 commit c7191ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ jobs:
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Print Runner OS
run: echo "Runner OS is ${{ runner.os }}"

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

- name: Print Runner OS
run: echo "The runner OS is ${{ runner.os }}"

- name: Archive Release Binary (Windows)
if: runner.os == 'windows-latest'
if: runner.os == 'Windows'
run: Compress-Archive -Path ./target/release/cpa.exe -DestinationPath cpa-Windows.zip
shell: pwsh

- name: Archive Release Binary (MacOS, Linux)
if: runner.os != 'windows-latest'
if: runner.os != 'Windows'
run: zip -j cpa-${{ runner.os }}.zip ./target/release/cpa

- name: Release
Expand Down

0 comments on commit c7191ae

Please sign in to comment.