From 56d94667c03f8464b6f50cd8cea7432691e6a712 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 10 Aug 2023 23:55:27 +0200 Subject: [PATCH] Add Github action that builds the project --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d5399b9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + GO: 1.20.7 + +jobs: + build: + name: "scons" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - name: Install dependencies + run: | + sudo apt-get install \ + scons \ + mesa-common-dev \ + libalut-dev \ + libopenal-dev \ + libvorbis-dev \ + libsdl2-dev \ + libice-dev \ + libsm-dev \ + libx11-dev \ + libxext-dev \ + libxmu-dev \ + libxpm-dev + + - name: "Run scons" + run: scons