diff --git a/.gitea/workflows/linux.yaml b/.gitea/workflows/linux.yaml new file mode 100644 index 0000000..c73f247 --- /dev/null +++ b/.gitea/workflows/linux.yaml @@ -0,0 +1,33 @@ +name: Linux arm +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Ignore cert signature + run: git config --global http.sslverify false + + - name: Install deps + run : | + apt update + apt install -y libsdl2-dev libglew-dev + + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Prepare Xmake + uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: branch@master + actions-cache-folder: '.xmake-cache' + + - name: XMake config + run: xmake f -p linux -y --root + + - name: Build + run: xmake --root + + - name: Test + run: xmake test --root \ No newline at end of file diff --git a/xmake.lua b/xmake.lua index 0325d7a..cd15209 100644 --- a/xmake.lua +++ b/xmake.lua @@ -3,6 +3,7 @@ add_rules("mode.debug", "mode.release") add_defines("TD_IMPL_OPENGL_LOADER_GLEW") add_requires("libsdl >= 2", "zlib", "glew") +set_languages("c++17") target("TowerDefenseData") set_kind("static") @@ -10,8 +11,6 @@ target("TowerDefenseData") add_includedirs("include") add_files("src/td/**.cpp") - set_languages("c++17") - add_packages("zlib") add_links("pthread")