Skip to content

Commit

Permalink
afsd
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatdongdang committed Sep 9, 2024
2 parents 7b9d37a + 5c46b05 commit e9f3366
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest,macos-latest]

runs-on: ${{ matrix.os }}
steps:
# Start and join the Spigot Server
- name: Set up Minecraft testing environment
Expand All @@ -28,32 +32,17 @@ jobs:
- name: Run test suite
working-directory: ./build
run: make test_suite && ctest -R full -V

install-and-compile:
strategy:
matrix:
os: [ubuntu-latest,macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Checkout the mcpp repository
- name: Checkout mcpp
uses: actions/checkout@v4

- name: Build file
run: cmake .

- name: Install library
working-directory: ./build
run: sudo make install

- name: Update linux cache
if: runner.os == 'Linux'
run: sudo ldconfig

- name: Compile and link library
run: g++ -std=c++17 test/link_test.cpp -o test/link_test -lmcpp
run: g++ -std=c++17 example/pyramid.cpp -o example/pyramid -lmcpp

- name: Run executable
run: test/link_test



- name: Run example
run: example/pyramid
3 changes: 3 additions & 0 deletions test/test_link.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include <mcpp/mcpp.h>

int main() {}

0 comments on commit e9f3366

Please sign in to comment.