From ae033e2a6df0d0fac779db30f62d27a6ece280e6 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 1 Sep 2023 15:45:40 +0200 Subject: [PATCH 1/8] cache packages and upload artifacts --- .github/workflows/debian-linux.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index 21f9f2cb..6c4dc071 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -8,14 +8,23 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Installing Dependencies - run: | - sudo apt-get update - sudo apt-get install -y freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libpulse-dev libalut-dev mesa-common-dev libopenal-dev + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Dependencies + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libpulse-dev libalut-dev mesa-common-dev libopenal-dev + version: 1.0 - name: Build run: | mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release .. - make VERBOSE=1 -j4 \ No newline at end of file + make VERBOSE=1 -j4 + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: cen64 Debian + path: ./build/cen64 From 9fc5719505246f2cfaaeb64fd2d3db8bba4240ee Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 1 Sep 2023 15:46:16 +0200 Subject: [PATCH 2/8] simplify on --- .github/workflows/debian-linux.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index 6c4dc071..c920ed83 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -1,8 +1,6 @@ name: debian-linux -on: - push: - pull_request: +on: [push, pull_request] jobs: build: From 3475093dfd4b4c4592b03bbc7f4692ea17d07525 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 1 Sep 2023 15:49:46 +0200 Subject: [PATCH 3/8] current libglew --- .github/workflows/debian-linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index c920ed83..92326631 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -12,7 +12,7 @@ jobs: - name: Install Dependencies uses: awalsh128/cache-apt-pkgs-action@latest with: - packages: freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libpulse-dev libalut-dev mesa-common-dev libopenal-dev + packages: freeglut3 freeglut3-dev libglew libglew-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libpulse-dev libalut-dev mesa-common-dev libopenal-dev version: 1.0 - name: Build From 06f9d91caf18127ff0eb9f589491eaf36a0a668a Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 1 Sep 2023 15:54:11 +0200 Subject: [PATCH 4/8] add mac ci --- .github/workflows/macos.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..d3e8447d --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,27 @@ +name: macos + +on: [push, pull_request] + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Dependencies + uses: tecolicom/actions-use-homebrew-tools@v1 + with: + tools: freeglut glew mesa openal-soft + + - name: Build + run: | + mkdir build && cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + make VERBOSE=1 -j4 + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: cen64 MacOS + path: ./build/cen64 From 85b831d2036051bd6903cd6c6ac9169e690f1eb9 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 1 Sep 2023 15:56:22 +0200 Subject: [PATCH 5/8] glew-dev depends on lib --- .github/workflows/debian-linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index 92326631..cb52e9c8 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -12,7 +12,7 @@ jobs: - name: Install Dependencies uses: awalsh128/cache-apt-pkgs-action@latest with: - packages: freeglut3 freeglut3-dev libglew libglew-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libpulse-dev libalut-dev mesa-common-dev libopenal-dev + packages: freeglut3 freeglut3-dev libglew-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev libpulse-dev libalut-dev mesa-common-dev libopenal-dev version: 1.0 - name: Build From 85bc351918070a44743af2b335a6cd24ab657759 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Fri, 1 Sep 2023 15:57:21 +0200 Subject: [PATCH 6/8] install sdl2 on mac --- .github/workflows/macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d3e8447d..73e614c9 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -12,7 +12,7 @@ jobs: - name: Install Dependencies uses: tecolicom/actions-use-homebrew-tools@v1 with: - tools: freeglut glew mesa openal-soft + tools: freeglut glew mesa openal-soft sdl2 - name: Build run: | From c2f6c19b826a1d73378b986081fb86954806177c Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 6 Sep 2023 13:12:53 +0200 Subject: [PATCH 7/8] update checkout to v3 to get rid of warning --- .github/workflows/debian-linux.yml | 2 +- .github/workflows/macos.yml | 2 +- .github/workflows/msys2-windows.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index cb52e9c8..d4494439 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Dependencies uses: awalsh128/cache-apt-pkgs-action@latest diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 73e614c9..6515c713 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,7 +7,7 @@ jobs: runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Dependencies uses: tecolicom/actions-use-homebrew-tools@v1 diff --git a/.github/workflows/msys2-windows.yml b/.github/workflows/msys2-windows.yml index 745d257d..6fe940f9 100644 --- a/.github/workflows/msys2-windows.yml +++ b/.github/workflows/msys2-windows.yml @@ -15,7 +15,7 @@ jobs: { msystem: MINGW64, arch: x86_64, extensions: Native } ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: temp fetch-depth: 0 @@ -86,4 +86,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: windows-${{ matrix.arch }}-${{ matrix.extensions }} - path: C:/_/build/*.dll \ No newline at end of file + path: C:/_/build/*.dll From 8345f479bd10010f4d282e3dd878f2f4323eae0f Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 2 Feb 2026 08:24:02 +0000 Subject: [PATCH 8/8] update gh actions --- .github/workflows/debian-linux.yml | 4 ++-- .github/workflows/macos.yml | 4 ++-- .github/workflows/msys2-windows.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index d4494439..cde159d2 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Install Dependencies uses: awalsh128/cache-apt-pkgs-action@latest @@ -22,7 +22,7 @@ jobs: make VERBOSE=1 -j4 - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v6 with: name: cen64 Debian path: ./build/cen64 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 6515c713..7066ab2b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,7 +7,7 @@ jobs: runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Install Dependencies uses: tecolicom/actions-use-homebrew-tools@v1 @@ -21,7 +21,7 @@ jobs: make VERBOSE=1 -j4 - name: Upload Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v6 with: name: cen64 MacOS path: ./build/cen64 diff --git a/.github/workflows/msys2-windows.yml b/.github/workflows/msys2-windows.yml index 6fe940f9..4460f218 100644 --- a/.github/workflows/msys2-windows.yml +++ b/.github/workflows/msys2-windows.yml @@ -15,7 +15,7 @@ jobs: { msystem: MINGW64, arch: x86_64, extensions: Native } ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 with: path: temp fetch-depth: 0 @@ -77,13 +77,13 @@ jobs: make VERBOSE=1 -j4 - name: "Upload executable" - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v6 with: name: windows-${{ matrix.arch }}-${{ matrix.extensions }} path: C:/_/build/*.exe - name: "Upload dll" - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v6 with: name: windows-${{ matrix.arch }}-${{ matrix.extensions }} path: C:/_/build/*.dll