diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..1cea9dfb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,58 @@ +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + Ubuntu-Bulid: + name: Build on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-22.04, ubuntu-20.04] + steps: + - uses: actions/checkout@v3 + - run: | + sudo apt-get install -y debhelper quilt scons libglu1-mesa-dev libvorbis-dev \ + libspeex-dev libfreetype6-dev libboost-dev libboost-thread-dev \ + libboost-date-time-dev libfribidi-dev portaudio19-dev libboost-math-dev \ + dpkg-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-net-dev + - run: scons -j16 + - run: dpkg-buildpackage -I.hg + + Windows-Build: + name: Build on windows-2022 msys2 + runs-on: windows-2022 + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + #update: true + install: >- + base-devel + git + msys/scons + msys/quilt + mingw64/mingw-w64-x86_64-SDL2 + mingw64/mingw-w64-x86_64-SDL2_image + mingw64/mingw-w64-x86_64-SDL2_net + mingw64/mingw-w64-x86_64-SDL2_ttf + mingw64/mingw-w64-x86_64-mesa + mingw64/mingw-w64-x86_64-libvorbis + mingw64/mingw-w64-x86_64-speex + mingw64/mingw-w64-x86_64-freetype + mingw64/mingw-w64-x86_64-boost + mingw64/mingw-w64-x86_64-fribidi + mingw64/mingw-w64-x86_64-portaudio + - shell: cmd + run: git config --global core.autocrlf input + - uses: actions/checkout@v3 + - run: echo 'mingw = True' >> options_cache.py && scons -j16