forked from discord/discord-rpc
-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (44 loc) · 1.29 KB
/
cmake.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
name: Build
on: [push, pull_request]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
include:
- os: windows-latest
build: 'discord-rpc-win.zip'
- os: ubuntu-latest
build: 'discord-rpc-linux.zip'
- os: macos-latest
build: 'discord-rpc-osx.zip'
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- if: matrix.os == 'windows-latest'
name: setup-msbuild
uses: microsoft/[email protected]
- name: Setup cmake
uses: jwlawson/[email protected]
- name: Setup Python
uses: actions/setup-python@v2
- name: Install click
run: pip install click
- name: Build
run: python build.py
- if: matrix.os == 'windows-latest'
name: Unzip
run: Expand-Archive -Path builds/${{ matrix.build }} -DestinationPath artifacts
- if: matrix.os != 'windows-latest'
name: Unzip
run: unzip builds/${{ matrix.build }} -d artifacts
- name: Upload ${{ matrix.os }}
uses: actions/upload-artifact@v3
with:
name: discord-rpc-${{ matrix.os }}
path: artifacts