aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-05-09 07:04:43 +0530
committerGitHub <[email protected]>2025-05-09 07:04:43 +0530
commit0c246e7e6c7516a01c8740c6ee39c2791c47ade2 (patch)
treea164cbc32054c7ad693e557d988c11db8acb282e
parentcd7419cfc3c7fcea060a6170c9ee0fb9be98b329 (diff)
downloadmetachan-0c246e7e6c7516a01c8740c6ee39c2791c47ade2.tar.xz
metachan-0c246e7e6c7516a01c8740c6ee39c2791c47ade2.zip
added build and compile workflow to test successful compilation
-rw-r--r--.github/workflows/compile.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml
new file mode 100644
index 0000000..c500336
--- /dev/null
+++ b/.github/workflows/compile.yml
@@ -0,0 +1,25 @@
+# This workflow will build a golang project
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
+
+name: Build and Compile
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Go
+ uses: actions/setup-go@v4
+ with:
+ go-version: '1.20'
+
+ - name: Build
+ run: go build -v ./...