CI build fixes

This commit is contained in:
Alula 2020-09-22 22:43:45 +02:00
parent a6b6361842
commit 5712f103af
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 17 additions and 8 deletions

View File

@ -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: