From 8aae4c757e630ff6eed3d7b01ed749800cb74ad5 Mon Sep 17 00:00:00 2001 From: CareyWong <33325726+CareyWang@users.noreply.github.com> Date: Sat, 9 Apr 2022 15:27:09 +0800 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f1a9f82..4583d47 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,14 +6,14 @@ on: jobs: - build: - name: Build + linux64_build: + name: Linux x86_64 Build runs-on: ubuntu-latest steps: - - name: Set up Go 1.15 + - name: Set up Go 1.18 uses: actions/setup-go@v1 with: - go-version: 1.15 + go-version: 1.18 id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -26,3 +26,24 @@ jobs: with: name: myurls-linux-amd64 path: build/myurls-linux-amd64.tar.gz + + aarch64_build: + name: Linux aarch64 Build + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.18 + uses: actions/setup-go@v1 + with: + go-version: 1.18 + id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt install gcc-aarch64-linux-gnu + - name: Build + run: /bin/sh -c "chmod +x release.sh && bash release.sh" + - name: Upload + uses: actions/upload-artifact@v1 + with: + name: myurls-linux-arm64 + path: build/myurls-linux-arm64.tar.gz