Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build System Fixes #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
go-version: 1.16.x

- name: Install dependencies
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
cd build
cmake -G Ninja ..
ninja
echo "::set-env name=LD_LIBRARY_PATH::$(pwd)/src:${LD_LIBRARY_PATH}"
echo "LD_LIBRARY_PATH=$(pwd)/src:${LD_LIBRARY_PATH}" >> $GITHUB_ENV

- name: Run tests
run: go test -v
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
go-version: 1.16.x

- name: Install dependencies
run: |
Expand Down Expand Up @@ -75,28 +75,28 @@ jobs:
submodules: true

- name: Install msys2
uses: numworks/setup-msys2@v1
uses: msys2/setup-msys2@v2
with:
path-type: inherit

- name: Install dependencies
run: "msys2do
pacman -S --noconfirm
run: "msys2 -c
'pacman -S --noconfirm
mingw-w64-x86_64-gcc
mingw-w64-x86_64-go
mingw-w64-x86_64-ninja
mingw-w64-x86_64-openssl
mingw-w64-x86_64-pkg-config
mingw-w64-x86_64-protobuf"
mingw-w64-x86_64-protobuf'"

- name: Compile GameNetworkingSockets library
run: |
cd lib/GameNetworkingSockets
mkdir build
cd build
msys2do cmake -G Ninja ..
msys2do ninja
msys2 -c 'cmake -G Ninja ..'
msys2 -c 'ninja'
cp src/libGameNetworkingSockets.dll ../../..

- name: Run tests
run: msys2do go test -v
run: msys2 -c 'go test -v'