From 45c3c42d85a62fc63799047f3a8cfa84197ab8a7 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sat, 28 Oct 2023 10:15:26 +0700 Subject: [PATCH] Try to build all variant in release workflow --- .github/workflows/release.yml | 64 +++++++++++++++++------------------ 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edf460ba5f9..ce9d3ad767b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,44 +46,44 @@ jobs: # name: dist-linux-${{ matrix.arch }} # path: build/linux/*/*/usql*.tar.bz2 -# build_for_macos: -# name: Build for MacOS -# runs-on: macos-latest -# strategy: -# matrix: -# arch: [amd64, arm64] -# steps: -# - name: Install build dependencies -# run: brew install coreutils -# - name: Checkout -# uses: actions/checkout@v3 -# - name: Setup Go -# uses: actions/setup-go@v4 -# with: -# go-version: ${{ env.GO_VERSION }} -# - name: Build amd64 -# run: ./build-release.sh -r -a ${{ matrix.arch }} + build_for_macos: + name: Build for MacOS + runs-on: macos-latest + strategy: + matrix: + arch: [amd64, arm64] + steps: + - name: Install build dependencies + run: brew install coreutils + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - name: Build amd64 + run: ./build-release.sh -r -a ${{ matrix.arch }} # - name: Archive artifacts # uses: actions/upload-artifact@v3 # with: # name: dist-darwin-${{ matrix.arch }} # path: build/darwin/*/*/usql*.tar.bz2 -# build_for_windows: -# name: Build for Windows -# runs-on: windows-latest -# steps: -# - name: Install build dependencies -# run: choco install zip -# - name: Checkout -# uses: actions/checkout@v3 -# - name: Setup Go -# uses: actions/setup-go@v4 -# with: -# go-version: ${{ env.GO_VERSION }} -# - name: Build amd64 -# shell: bash -# run: ./build-release.sh -r + build_for_windows: + name: Build for Windows + runs-on: windows-latest + steps: + - name: Install build dependencies + run: choco install zip + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - name: Build amd64 + shell: bash + run: ./build-release.sh -r # - name: Archive artifacts # uses: actions/upload-artifact@v3 # with: