diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..bd15101 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,52 @@ +name: SteamWorks.ext Build + +on: + push: + branches: [ master, windows98 ] + pull_request: + branches: [ master, windows98 ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [2.7, 3.3, 3.8] + os: [ubuntu-18.04, macos-latest, windows-2019] + exclude: + - os: macos-latest + python-version: 3.3 + - os: windows-2019 + python-version: 3.3 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Deps + if: runner.os == 'Linux' + run: | + sudo dpkg --add-architecture i386 + sudo apt-get install lib32stdc++-7-dev lib32z1-dev libc6-dev-i386 + sudo apt-get install g++-multilib + - name: install AMBuild + run: | + mkdir assets + cd assets + git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b fix-deps https://github.com/alliedmodders/ambuild.git + pip install ./ambuild + - name: Clone Dependencies + run: | + git clone --depth 1 --recurse-submodules -j8 --shallow-submodules https://$OAUTH@github.com/SteamDatabase/SteamworksSDK.git SteamworksSDK + git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b sdk2013 https://github.com/alliedmodders/hl2sdk.git hl2sdk-sdk2013 + git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b 1.10-dev https://github.com/alliedmodders/metamod-source.git mmsource-central + git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b 1.7-dev https://github.com/alliedmodders/sourcemod.git sourcemod-central + - name: Run Build + run: | + mkdir build + cd build + cp ../AMBuildScript ../../ + python ../configure.py -s sdk2013 --hl2sdk-root ../assets --sm-path ../assets/sourcemod-central --mms-path ../assets/mmsource-central --steamworks-path ../assets/SteamworksSD + ambuild