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.
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
name: Build Debug Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- github-actions
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Cache Dependencies
|
|
id: cache-dependencies
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
node_modules
|
|
src-tauri/target
|
|
~/.cargo
|
|
key: ${{ runner.os }}-dependencies-${{ hashFiles('src-tauri/Cargo.lock') }}-${{ hashFiles('yarn.lock') }}
|
|
restore_keys: |
|
|
${{ runner.os }}-dependencies-
|
|
|
|
- name: Use Node.js 16
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Install Tauri
|
|
run: cargo install tauri-cli --version ^1.0.0-beta
|
|
|
|
- name: Install Angular CLI
|
|
run: npm install -g @angular/cli
|
|
|
|
- name: Install yarn
|
|
run: npm install -g yarn
|
|
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
|
|
- name: Build project
|
|
run: cargo tauri build --debug
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: mediarepo-ui-{{ matrix.os }}
|
|
path: |
|
|
src-tauri/release/bundle/*
|
|
src-tauri/release/mediarepo-ui* |