Skip to content

Include client dierctory in CI builds #3

Include client dierctory in CI builds

Include client dierctory in CI builds #3

Workflow file for this run

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