-
-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (40 loc) · 1009 Bytes
/
main.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
name: main
on:
pull_request:
# `workflow_call` is used by the tag workflow to trigger the `build` job
workflow_call:
workflow_dispatch:
jobs:
check-codingstyle:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: ci/install-clang-format
- name: check coding style
run: CLANG_FORMAT_CMD=./clang-format ci/check-codingstyle
build:
runs-on: ${{ matrix.os }}
env:
PYTHONUNBUFFERED: 1
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- macos-12
- windows-2019
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: ci/install-dependencies deps
shell: bash
- name: Build
run: . deps/env.sh && ci/build-app
shell: bash
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: build/nanonote[-_]*.*