mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-07 11:37:07 +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]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get install libasound2-dev libudev-dev pkg-config
|
||||||
|
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -26,12 +29,15 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --all --release && strip target/release/doukutsu-rs
|
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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Executable with game data
|
name: doukutsu-rs_linux_amd64
|
||||||
path: |
|
path: |
|
||||||
target/release/doukutsu-rs
|
doukutsu-rs.x86_64
|
||||||
data
|
data
|
||||||
!data/README.md
|
!data/README.md
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
@ -41,13 +47,13 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
target/release/doukutsu-rs
|
doukutsu-rs.x86_64
|
||||||
data
|
data
|
||||||
!data/README.md
|
!data/README.md
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build-win:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -70,12 +76,15 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --all --release
|
run: cargo build --all --release
|
||||||
|
|
||||||
|
- name: Copy executable to root directory
|
||||||
|
run: cp target/release/doukutsu-rs.exe doukutsu-rs.exe
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Executable with game data
|
name: doukutsu-rs_windows_x64
|
||||||
path: |
|
path: |
|
||||||
target/release/doukutsu-rs.exe
|
doukutsu-rs.exe
|
||||||
data
|
data
|
||||||
!data/README.md
|
!data/README.md
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
@ -85,7 +94,7 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
target/release/doukutsu-rs.exe
|
doukutsu-rs.exe
|
||||||
data
|
data
|
||||||
!data/README.md
|
!data/README.md
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue