From 802cfd2fafc353afbc9f94a3503ef468abcfbb0d Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Thu, 6 Jul 2023 10:48:05 +0000 Subject: [PATCH] Add Github action to build PRs (#1048) --- .github/workflows/build.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..6082e4c3d --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,20 @@ +# every push to a branch: build binary +name: Build +on: + pull_request: + types: [opened, synchronize] +jobs: + build_binary: + name: Build nakama binary + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: "stable" + + - name: Checkout + uses: actions/checkout@v3 + + - name: Build binary + run: go build -trimpath -mod=vendor -- GitLab