Skip to content

Commit 7cfb4bc

Browse files
committed
Migrate CI to GitHub Actions
1 parent d5a575c commit 7cfb4bc

File tree

4 files changed

+51
-75
lines changed

4 files changed

+51
-75
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/workflows/main.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu-latest
13+
- windows-latest
14+
build_type:
15+
- Debug
16+
- Release
17+
fail-fast: false
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
24+
submodules: recursive
25+
26+
- name: Setup MSVC
27+
if: runner.os == 'Windows'
28+
uses: TheMrMilchmann/setup-msvc-dev@v3
29+
with:
30+
arch: x64
31+
32+
- name: Install Qt
33+
uses: jurplel/install-qt-action@v3
34+
with:
35+
version: 5.15.*
36+
37+
- name: Build
38+
shell: bash
39+
run: |
40+
if [ "$RUNNER_OS" == "Windows" ]; then
41+
export CMAKE_GENERATOR=Ninja
42+
fi
43+
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install -DLIBBNDL_BUILD_UI=ON
44+
cmake --build build
45+
cmake --install build
46+
47+
- uses: actions/upload-artifact@v4
48+
with:
49+
name: libbndl-${{ matrix.build_type }}-${{ matrix.os }}
50+
path: install/*

.travis.yml

-33
This file was deleted.

appveyor.yml

-42
This file was deleted.

0 commit comments

Comments
 (0)