diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..93e5877 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: lootinator-release-build + +on: [push] + +jobs: + linux: + name: build/release/linux + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: setup + run: | + sudo apt update + - name: build + run: | + mkdir build && cd build && cmake .. + make -B -j8 + - uses: actions/upload-artifact@v4 + with: + name: lootinator-cli-linux + path: ./build/cli/lootinator-cli + windows: + name: build/release/windows + runs-on: [windows-latest] + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: build + run: | + cmake -S . -B build + cmake --build build --config Release + - uses: actions/upload-artifact@v4 + with: + name: lootinator-cli-windows.exe + path: .\build\cli\Release\lootinator-cli.exe diff --git a/CMakeLists.txt b/CMakeLists.txt index ac25c2a..3c919a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.11`) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)