From 3d880e14bb62ef4e6bff4add1103f9d3a57292b8 Mon Sep 17 00:00:00 2001 From: Poly Date: Sun, 24 Jan 2021 18:43:04 +0100 Subject: [PATCH] [CI] Move cargo to actions-rs --- .github/workflows/rust.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4a53b2d1..b40a777c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -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 @@ -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