From 1a1a17e3893b629c3da74aed07b013010e3fad3a Mon Sep 17 00:00:00 2001 From: Seven Date: Tue, 31 Dec 2024 16:23:54 +0800 Subject: [PATCH] [+] create gitea action file --- .gitea/workflows/build.yaml | 15 +++++++++++++++ README.md | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..c781bc7 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,15 @@ +name: Build Action for Go +on: [push] + +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 ./src/ -o geofeed-tools \ No newline at end of file diff --git a/README.md b/README.md index 200ea3e..d45c180 100644 --- a/README.md +++ b/README.md @@ -14,18 +14,18 @@ This utility is used to validate the format of geofeed files. git clone https://github.com/realSunyz/geofeed-validator.git # Navigate to the directory -cd geofeed-validator/src +cd geofeed-tools/src # Synchronize and clean up dependencies go mod tidy # Build the executable file -go build -o geofeed-validator +go build -o geofeed-tools ``` ### Run ```bash -./geofeed-validator +./geofeed-tools ``` ## Contributing