name: Build Project on: push: branches: - main pull_request: branches: - main jobs: build: strategy: fail-fast: false matrix: os: - ubuntu-latest # - windows-latest runs-on: ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v3 - name: Install Dependencies (Linux) if: runner.os == 'Linux' run: | sudo apt-get update sudo apt-get install -y \ build-essential \ gcc \ g++ \ make \ git \ cmake \ libasound2-dev \ mesa-common-dev \ libx11-dev \ libxrandr-dev \ libxinerama-dev \ libxcursor-dev \ libxi-dev \ libgl1-mesa-dev \ libglu1-mesa-dev - name: Build & Install Raylib (Linux) if: runner.os == 'Linux' run: | git clone --depth 1 https://github.com/raysan5/raylib.git cd raylib/src make PLATFORM=PLATFORM_DESKTOP sudo make install # - name: Install MSYS2 and Raylib (Windows) # if: runner.os == 'Windows' # uses: msys2/setup-msys2@v2 # with: # msystem: MINGW64 # update: true # install: > # mingw-w64-x86_64-gcc # mingw-w64-x86_64-make # mingw-w64-x86_64-raylib - name: Build (Linux) if: runner.os == 'Linux' run: make # - name: Build (Windows) # if: runner.os == 'Windows' # shell: msys2 {0} # run: make - name: Upload Linux Artifact if: runner.os == 'Linux' uses: actions/upload-artifact@v3 with: name: wrldbox-linux path: wrldbox # - name: Upload Windows Artifact # if: runner.os == 'Windows' # uses: actions/upload-artifact@v3 # with: # name: wrldbox-windows # path: "*.exe"