mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-05 18:47:00 +00:00
CI build fixes
This commit is contained in:
parent
a6b6361842
commit
5712f103af
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue