-
Notifications
You must be signed in to change notification settings - Fork 169
64 lines (54 loc) · 1.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build and Upload Artifact
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y make
shell: bash
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install make
shell: bash
- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install make
shell: pwsh
- name: Build project
run: make
shell: bash
- name: Archive production artifacts (Linux)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: build-artifacts-linux
path: bin/linux/genie
- name: Archive production artifacts (macOS)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: build-artifacts-macos
path: bin/darwin/genie
- name: Archive production artifacts (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: build-artifacts-windows
path: bin/windows/genie.exe