Skip to content

Commit 1179a95

Browse files
committed
chore: remove .idea/, add ci
1 parent 1bbcd2e commit 1179a95

File tree

12 files changed

+87
-288
lines changed

12 files changed

+87
-288
lines changed

.clang-tidy

Lines changed: 0 additions & 147 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
defaults:
6+
run:
7+
shell: bash
8+
9+
jobs:
10+
build:
11+
name: ${{ matrix.platform.name }} ${{ matrix.config.name }}
12+
runs-on: ${{ matrix.platform.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
platform:
18+
- { name: Windows VS2019, os: windows-2019 }
19+
- { name: Windows VS2022, os: windows-2022 }
20+
- { name: Linux GCC, os: ubuntu-latest }
21+
- { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
22+
- { name: macOS, os: macos-latest }
23+
config:
24+
- { name: Shared, flags: -DBUILD_SHARED_LIBS=TRUE }
25+
- { name: Static, flags: -DBUILD_SHARED_LIBS=FALSE }
26+
27+
steps:
28+
- name: Install Linux Dependencies
29+
if: runner.os == 'Linux'
30+
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libxi-dev libudev-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libfreetype-dev
31+
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Configure
36+
run: cmake -B build ${{matrix.platform.flags}} ${{matrix.config.flags}}
37+
38+
- name: Build
39+
run: cmake --build build --config Release

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/cmake-build-debug/
22
/build/
3-
*.exe
3+
*.exe
4+
.cache/

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/chip8emu.iml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.idea/editor.xml

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)