From 5712f103af45bd59e266ed51b5ee65dae992cf01 Mon Sep 17 00:00:00 2001 From: Alula Date: Tue, 22 Sep 2020 22:43:45 +0200 Subject: [PATCH] CI build fixes --- .github/workflows/release.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b090c28..160e88c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,10 +3,13 @@ name: Release on: [push] jobs: - build: + build-linux: runs-on: ubuntu-latest steps: + - name: Install dependencies + run: sudo apt-get install libasound2-dev libudev-dev pkg-config + - name: Checkout sources uses: actions/checkout@v2 @@ -26,12 +29,15 @@ jobs: - name: Build run: cargo build --all --release && strip target/release/doukutsu-rs + - name: Copy executable to root directory + run: cp target/release/doukutsu-rs doukutsu-rs.x86_64 + - name: Upload artifacts uses: actions/upload-artifact@v2 with: - name: Executable with game data + name: doukutsu-rs_linux_amd64 path: | - target/release/doukutsu-rs + doukutsu-rs.x86_64 data !data/README.md if-no-files-found: error @@ -41,13 +47,13 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: | - target/release/doukutsu-rs + doukutsu-rs.x86_64 data !data/README.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build-win: + build-windows: runs-on: windows-latest steps: @@ -70,12 +76,15 @@ jobs: - name: Build run: cargo build --all --release + - name: Copy executable to root directory + run: cp target/release/doukutsu-rs.exe doukutsu-rs.exe + - name: Upload artifacts uses: actions/upload-artifact@v2 with: - name: Executable with game data + name: doukutsu-rs_windows_x64 path: | - target/release/doukutsu-rs.exe + doukutsu-rs.exe data !data/README.md if-no-files-found: error @@ -85,7 +94,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: | - target/release/doukutsu-rs.exe + doukutsu-rs.exe data !data/README.md env: