Include client dierctory in CI builds #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build release | |
run: cargo build --release --verbose | |
- name: Prepare artifact | |
run: | | |
mkdir dist | |
cp target/release/openfusionmap dist/ | |
cp -r client dist/ | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: OpenFusionMap-linux | |
path: dist/ | |
if-no-files-found: error | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Prepare artifact | |
run: | | |
mkdir dist | |
Copy-Item .\target\release\openfusionmap.exe .\dist\ | |
Copy-Item .\target\release\openfusionmap.pdb .\dist\ | |
Copy-Item .\client\ .\dist\ -Recurse | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: OpenFusionMap-windows | |
path: dist/ | |
if-no-files-found: error | |