From 3c7ddbe8925a0bea589ec515bd8a7d988889d6d7 Mon Sep 17 00:00:00 2001 From: wt Date: Thu, 17 Sep 2026 16:20:49 +0700 Subject: [PATCH] Update .gitea/workflows/actions.yaml --- .gitea/workflows/actions.yaml | 36 ++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 2664cc4..f22bd9e 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -4,15 +4,20 @@ on: [push] jobs: Build: - runs-on: golang-1.26.1-alpine + runs-on: ubuntu-latest steps: - name: Check out repository code - uses: actions/checkout@v3 - - name: Prepare build + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + cache: true # Enables automatic caching for Go modules to speed up runs + - name: Install dependencies run: go mod download && go mod tidy - - name: Build - run: go build - - uses: actions/upload-artifact@v3 + - name: Build Application + run: go build -v + - uses: actions/upload-artifact@v4 with: name: artifacts path: | @@ -23,14 +28,19 @@ jobs: runs-on: golang-1.26.1-alpine steps: - name: Check out repository code - uses: actions/checkout@v3 - - name: Prepare build - run: go mod download && go mod tidy - - name: Build - run: GOARCH=arm64 GOOS=linux go build - - uses: actions/upload-artifact@v3 + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 with: - name: artifacts-arm64 + go-version-file: 'go.mod' + cache: true # Enables automatic caching for Go modules to speed up runs + - name: Install dependencies + run: go mod download && go mod tidy + - name: Build Application + run: GOARCH=arm64 GOOS=linux go build -v + - uses: actions/upload-artifact@v4 + with: + name: artifacts path: | ./up ./up.conf