diff --git a/.github/workflows/debian-linux.yml b/.github/workflows/debian-linux.yml index 21f9f2cb..cde159d2 100644 --- a/.github/workflows/debian-linux.yml +++ b/.github/workflows/debian-linux.yml @@ -1,21 +1,28 @@ name: debian-linux -on: - push: - pull_request: +on: [push, pull_request] 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@v6 + + - name: Install Dependencies + uses: awalsh128/cache-apt-pkgs-action@latest + with: + 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 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@v6 + with: + name: cen64 Debian + path: ./build/cen64 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..7066ab2b --- /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@v6 + + - name: Install Dependencies + uses: tecolicom/actions-use-homebrew-tools@v1 + with: + tools: freeglut glew mesa openal-soft sdl2 + + - name: Build + run: | + mkdir build && cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + make VERBOSE=1 -j4 + + - name: Upload Artifacts + 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 745d257d..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@v2 + - 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 \ No newline at end of file + path: C:/_/build/*.dll