Skip to content

Commit

Permalink
[CI] Move cargo to actions-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Jan 24, 2021
1 parent b69acc5 commit 3d880e1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- name: Install alsa
run: sudo apt update && sudo apt install libasound2-dev libgtk-3-dev
- uses: Swatinem/rust-cache@v1
- name: Build
run: cargo build --release --verbose
# - name: Run tests
# run: cargo test --verbose
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Chmod +x
run: chmod +x target/release/neothesia
- name: zip binary
Expand All @@ -27,10 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- name: Build
run: cargo build --release --verbose
# - name: Run tests
# run: cargo test --verbose
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v2
with:
name: windows-artifact
Expand All @@ -40,8 +40,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- name: Build
run: cargo build --release --verbose
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: copy binary
run: cp target/release/neothesia .github/app/Neothesia.app/Contents/MacOS
- name: zip binary
Expand Down

0 comments on commit 3d880e1

Please sign in to comment.