Skip to content

Add license to Cargo.toml #5

Add license to Cargo.toml

Add license to Cargo.toml #5

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/upload-artifact@v4.4.3
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/upload-artifact@v4.4.3
with:
name: OpenFusionMap-windows
path: dist/
if-no-files-found: error