forked from JuneStepp/OneLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.18 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: build
on:
push:
tags:
- "v*.*"
jobs:
release:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, windows-latest]
include:
- os: ubuntu-18.04
artifact_name: OneLauncher-Linux
- os: windows-latest
artifact_name: OneLauncher-Windows
- os: macOs-10.15
artifact_name: OneLauncher-Mac
steps:
- uses: actions/checkout@v1
- name: Linux dependencies
if: runner.os == 'Linux'
run: |
sudo add-apt-repository ppa:jonathonf/backports
sudo apt-get update
sudo apt-get install sqlite3
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ^3.10.0
- name: Setup Poetry
run: |
pip install --upgrade pip
pip install poetry
- name: Install dependencies
run: poetry install
- name: Build
run: poetry run compile.py
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.artifact_name }}
path: start_onelauncher.dist