69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: CI
|
|
|
|
# Controls when the workflow will run
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the "master" branch
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
build-backend-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.18
|
|
- name: Build linux backend
|
|
run: |
|
|
make linux
|
|
- name: Upload linux backend
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: backend-linux
|
|
path: |
|
|
msw-open-music
|
|
config.json
|
|
build-backend-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.18
|
|
- name: Build windows backend
|
|
run: |
|
|
go build -v
|
|
- name: Upload linux backend
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: backend-windows
|
|
path: |
|
|
msw-open-music.exe
|
|
config.json
|
|
build-frontend-web:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CI: false
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- name: Build web front end
|
|
run: |
|
|
make web
|
|
- name: upload packaged front end
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: frontend-web
|
|
path: web/build
|