Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into update-protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-wa committed Mar 23, 2023
2 parents fdc3c5d + 3b38504 commit 3cbbb6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Update Protobufs
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'
jobs:
Expand All @@ -13,7 +14,7 @@ jobs:
- name: Download latest Protobufs
run: |
git clone --depth=1 https://github.com/SteamDatabase/GameTracking-CSGO.git $GameTracking_dir
cp $GameTracking_dir/Protobufs/{cstrike15_*.proto,engine_gcmessages.proto,netmessages.proto,steammessages.proto} pkg/demoinfocs/msg/proto
cp $GameTracking_dir/Protobufs/{cstrike15_*.proto,engine_gcmessages.proto,netmessages.proto,steammessages.proto,gcsdk_gcmessages.proto,networkbasetypes.proto,network_connection.proto} pkg/demoinfocs/msg/proto
if [[ ! `git status --porcelain` ]]; then
echo "PROTOBUFS_CHANGED=false" >> $GITHUB_ENV
Expand Down
3 changes: 3 additions & 0 deletions pkg/demoinfocs/msg/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ protoc --proto_path=proto \
--go_opt=Mengine_gcmessages.proto=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
--go_opt=Mnetmessages.proto=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
--go_opt=Msteammessages.proto=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
--go_opt=Mgcsdk_gcmessages.proto=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
--go_opt=Mnetworkbasetypes.proto=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
--go_opt=Mnetwork_connection.proto=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
--go_opt=module=github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg \
cstrike15_gcmessages.proto cstrike15_usermessages.proto engine_gcmessages.proto netmessages.proto steammessages.proto

0 comments on commit 3cbbb6e

Please sign in to comment.