Skip to content

Commit f9b62b1

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

File tree

4 files changed

+49
-75
lines changed

4 files changed

+49
-75
lines changed

.gitattributes

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

.github/workflows/main.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
30+
- name: Install Qt
31+
uses: jurplel/install-qt-action@v3
32+
with:
33+
version: 5.15.*
34+
35+
- name: Build
36+
shell: bash
37+
run: |
38+
if [ "$RUNNER_OS" == "Windows" ]; then
39+
export CMAKE_GENERATOR=Ninja
40+
fi
41+
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install -DLIBBNDL_BUILD_UI=ON
42+
cmake --build build
43+
cmake --install build
44+
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: libbndl-${{ matrix.build_type }}-${{ matrix.os }}
48+
path: install/*

.travis.yml

-33
This file was deleted.

appveyor.yml

-42
This file was deleted.

0 commit comments

Comments
 (0)