Skip to content

Commit

Permalink
Add GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
enzet committed Jul 21, 2024
1 parent 07413b4 commit 24252a4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Configure and build
uses: threeal/cmake-action@main
with:
source-dir: .
build-dir: build
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ include_directories(include)
add_subdirectory(src)

add_executable(language src/main.cpp)
target_link_libraries(language /opt/homebrew/lib)
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -e

rm -rf ${BUILD_DIRECTORY}
mkdir ${BUILD_DIRECTORY}
cmake . -B ${BUILD_DIRECTORY}
cd ${BUILD_DIRECTORY}
cmake ..
make -j4
cd ..
mkdir -p out
Expand Down
Empty file added src/CMakeLists.txt
Empty file.

0 comments on commit 24252a4

Please sign in to comment.