From 3e8950522ada4fd234cf6cd78010264f8a8757cc Mon Sep 17 00:00:00 2001 From: Azrotho Date: Mon, 12 Oct 2026 15:01:42 +0200 Subject: [PATCH 1/5] working on an advenced CI/CD --- .github/workflows/ci.yml | 3 +- .github/workflows/distribution.yml | 78 ++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/distribution.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d71c53c..635c0d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,9 @@ name: ci.yml on: - push: - branches: ['**'] pull_request: jobs: build: + name: Check Build runs-on: ubuntu-26.04 permissions: contents: read diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml new file mode 100644 index 0000000..96c0b9f --- /dev/null +++ b/.github/workflows/distribution.yml @@ -0,0 +1,78 @@ +name: distribution.yml +on: + push: + branches: ['**'] +jobs: + build: + name: Check Build + runs-on: ubuntu-26.04 + permissions: + contents: read + checks: write + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Install gf + run : | + sudo apt-get update -y + sudo apt-get install libsdl2-dev libstb-dev libboost-dev libfreetype6-dev zlib1g-dev libpugixml-dev cmake -y + git clone https://github.com/GamedevFramework/gf.git + cd gf + git submodule update --init + mkdir build + cd build + cmake ../ -DGF_BUILD_GAMES=ON -DGF_BUILD_TOOLS=ON -DCMAKE_CXX_FLAGS="-include cstdint" + make + sudo make install + + - name: CMake + run: mkdir build && cd build && cmake .. + + - name: Build + run: cd build && make + build-linux: + name: Build Linux + needs: + - build + runs-on: ubuntu-26.04 + permissions: + contents: read + checks: write + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Install gf + run : | + sudo apt-get update -y + sudo apt-get install libsdl2-dev libstb-dev libboost-dev libfreetype6-dev zlib1g-dev libpugixml-dev cmake -y + git clone https://github.com/GamedevFramework/gf.git + cd gf + git submodule update --init + mkdir build + cd build + cmake ../ -DGF_BUILD_GAMES=ON -DGF_BUILD_TOOLS=ON -DCMAKE_CXX_FLAGS="-include cstdint" + make + sudo make install + + - name: CMake + run: mkdir build && cd build && cmake .. + + - name: Build + run: cd build && make + + - name: Prepare Client + run: mkdir stank-client-linux && cp build/stank stank-client-linux/ + + - name: Upload Artifact Client + uses: actions/upload-artifact@v7 + with: + name: standard-client-linux + path: stank-client-linux/ + retention-days: 7 + +# A voir plus tard pour CI/CD windows, macos + From d625e4a45b5beb2c1163bec2c336d87bbc959333 Mon Sep 17 00:00:00 2001 From: Azrotho Date: Mon, 12 Oct 2026 15:11:27 +0200 Subject: [PATCH 2/5] added server in distribution --- .github/workflows/distribution.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index 96c0b9f..6708838 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -74,5 +74,15 @@ jobs: path: stank-client-linux/ retention-days: 7 + - name: Prepare Server + run: mkdir stank-server-linux && cp build/stankd stank-server-linux/ + + - name: Upload Artifact Server + uses: actions/upload-artifact@v7 + with: + name: standard-server-linux + path: stank-server-linux/ + retention-days: 7 + # A voir plus tard pour CI/CD windows, macos From 629e5b2f7deb6145c41874044ad222d0a0653ef1 Mon Sep 17 00:00:00 2001 From: Azrotho Date: Mon, 12 Oct 2026 15:21:04 +0200 Subject: [PATCH 3/5] make gf static in ci --- .github/workflows/distribution.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index 6708838..b2c3be2 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -54,7 +54,7 @@ jobs: git submodule update --init mkdir build cd build - cmake ../ -DGF_BUILD_GAMES=ON -DGF_BUILD_TOOLS=ON -DCMAKE_CXX_FLAGS="-include cstdint" + cmake ../ -DBUILD_SHARED_LIBS=OFF -DGF_BUILD_GAMES=ON -DGF_BUILD_TOOLS=ON -DCMAKE_CXX_FLAGS="-include cstdint" make sudo make install From ac42ef03ce847f63662cc8d16609034de3b69a4d Mon Sep 17 00:00:00 2001 From: Azrotho Date: Mon, 12 Oct 2026 15:22:13 +0200 Subject: [PATCH 4/5] repair stank_server --- .github/workflows/distribution.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index b2c3be2..5cbf04a 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -75,7 +75,7 @@ jobs: retention-days: 7 - name: Prepare Server - run: mkdir stank-server-linux && cp build/stankd stank-server-linux/ + run: mkdir stank-server-linux && cp build/stank_server stank-server-linux/ - name: Upload Artifact Server uses: actions/upload-artifact@v7 From 5bdf7df2a315f1781677bdd890f29e9d8bf09e21 Mon Sep 17 00:00:00 2001 From: Azrotho Date: Mon, 12 Oct 2026 15:31:39 +0200 Subject: [PATCH 5/5] rename artefacts --- .github/workflows/distribution.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index 5cbf04a..b9ccea1 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -70,7 +70,7 @@ jobs: - name: Upload Artifact Client uses: actions/upload-artifact@v7 with: - name: standard-client-linux + name: stank-client-linux-x86_84 path: stank-client-linux/ retention-days: 7 @@ -80,7 +80,7 @@ jobs: - name: Upload Artifact Server uses: actions/upload-artifact@v7 with: - name: standard-server-linux + name: stank-server-linux-x86_84 path: stank-server-linux/ retention-days: 7