Skip to content

Commit

Permalink
Try Home Path
Browse files Browse the repository at this point in the history
  • Loading branch information
caxanga334 committed Mar 30, 2024
1 parent 748f5ee commit 0d32648
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
include:
- meta_branch: "1.12-dev"
sm_branch: "master"
sdks_to_fetch: 'tf2 css hl2dm dods orangebox sdk2013 bms l4d l4d2 eye'

- buildjobs: windows-x86
os_version: windows-latest
identifier: 'Windows Latest (x86)'
msvc_arch: 'x86'
ambuild_target: 'x86'
package_name: 'windows-x86'
build_sdks: 'tf2,dods,css,hl2dm,orangebox,l4d,l4d2'
build_sdks: 'tf2,dods,css,hl2dm,orangebox,sdk2013,bms,l4d,l4d2'

- buildjobs: linux-latest
os_version: ubuntu-latest
Expand All @@ -34,7 +35,7 @@ jobs:
cxx: clang++-15
ambuild_target: 'x86,x86_64'
package_name: 'linux-latest'
build_sdks: 'tf2,dods,css,hl2dm,orangebox,l4d,l4d2'
build_sdks: 'tf2,dods,css,hl2dm,orangebox,sdk2013,bms,l4d,l4d2'

steps:
- name: Install Packages (Linux)
Expand All @@ -46,7 +47,7 @@ jobs:
echo "CC=${{ matrix.cc }}" >> $GITHUB_ENV
echo "CXX=${{ matrix.cxx }}" >> $GITHUB_ENV
- name: Install MSVC for ${{ matrix.identifier }} (${{ matrix.msvc_arch }})
- name: Install MSVC for ${{ matrix.identifier }}
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v2
with:
Expand Down Expand Up @@ -81,10 +82,8 @@ jobs:
- name: Fetch SDKs
shell: bash
run: |
mkdir -p ${{ github.workspace }}/alliedmodders
cd ${{ github.workspace }}/alliedmodders
git clone --mirror https://github.com/alliedmodders/hl2sdk hl2sdk-proxy-repo
sdks=(tf2 css hl2dm dods bms sdk2013 orangebox l4d l4d2)
sdks=(${{ matrix.sdks_to_fetch }})
for sdk in "${sdks[@]}"
do
git clone hl2sdk-proxy-repo -b $sdk hl2sdk-$sdk
Expand All @@ -96,12 +95,12 @@ jobs:
path: navbot
submodules: recursive

- name: Build Extension
- name: Build Extension For ${{ matrix.ambuild_target }}
working-directory: navbot
run: |
mkdir build
cd build
python3 ../configure.py --hl2sdk-root "${{ github.workspace }}/alliedmodders" --sdks="${{ matrix.build_sdks }}" --sm-path="${{ github.workspace }}/sourcemod" --mms-path="${{ github.workspace }}/mmsource" --enable-optimize --enable-lto --targets "${{ matrix.ambuild_target }}" --symbol-files
python3 ../configure.py --sdks="${{ matrix.build_sdks }}" --sm-path="${{ github.workspace }}/sourcemod" --mms-path="${{ github.workspace }}/mmsource" --enable-optimize --enable-lto --targets "${{ matrix.ambuild_target }}" --symbol-files
ambuild
- name: Get commit SHA
Expand Down

0 comments on commit 0d32648

Please sign in to comment.