You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
963 B
YAML
44 lines
963 B
YAML
3 years ago
|
name: Build daemon
|
||
3 years ago
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main, develop ]
|
||
|
pull_request:
|
||
|
branches: [ main, develop ]
|
||
|
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
build:
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
3 years ago
|
- name: switch working directory
|
||
|
run: cd mediarepo-daemon
|
||
|
|
||
3 years ago
|
- name: Cache build data
|
||
|
uses: actions/cache@v2
|
||
|
with:
|
||
|
path: |
|
||
|
target
|
||
|
~/.cargo/
|
||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-cargo-
|
||
|
|
||
|
- name: Build
|
||
3 years ago
|
run: cargo build --release --no-default-features
|
||
3 years ago
|
|
||
|
- name: Upload artifacts
|
||
|
uses: actions/upload-artifact@v2
|
||
|
with:
|
||
|
name: mediarepo-daemon-${{ runner.os }}
|
||
|
path: |
|
||
|
target/release/mediarepo-daemon*
|