-
Notifications
You must be signed in to change notification settings - Fork 21
67 lines (63 loc) · 1.58 KB
/
ci.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
65
66
67
name: CI
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Build
run: |
./bootstrap.sh
./configure
make
macos:
runs-on: macos-latest
steps:
- name: Install dependencies
run: |
brew install autoconf automake libtool pkg-config
- name: Checkout sources
uses: actions/checkout@v3
- name: Build
run: |
./bootstrap.sh
./configure
make
mingw-cross:
strategy:
matrix:
arch: [i686, x86_64]
include:
- arch: i686
os: mingw32
- arch: x86_64
os: mingw64
runs-on: ubuntu-latest
steps:
- name: Install cross compiler
run: |
ARCH=${{ matrix.arch }}
sudo apt-get install g++-mingw-w64-${ARCH//_/-}
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
./bootstrap.sh
./configure --host=${{ matrix.arch }}-w64-mingw32 --prefix=/usr/${{ matrix.arch }}-w64-mingw32
make
windows-msvc:
strategy:
matrix:
platform: [Win32, x64]
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.3.1
- name: Build
run: |
MSBuild.exe vcproj/mp4fpsmod.sln /m /p:Configuration=Release /p:Platform=${{ matrix.platform }}