diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 461fe78..a386a0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,29 +19,29 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set variables - id: variables - run: | - tag=`basename ${{ github.ref }}` - golang_version=1.22 - cgo_enabled=0 + # - name: Set variables + # id: variables + # run: | + # tag=`basename ${{ github.ref }}` + # golang_version=1.22 + # cgo_enabled=0 - name: Set up Go uses: actions/setup-go@v2 with: - go-version: ${{ steps.variables.outputs.golang_version }} + go-version: 1.22 - name: Build binary - if: ${{ matrix.os }} != windows && ${{ matrix.arch }} != arm64 run: | - GOOS=${{ matrix.os }} - GOARCH=${{ matrix.arch }} - CGO_ENABLED=${{ steps.variables.outputs.cgo_enabled }} + export GOOS=${{ matrix.os }} + export GOARCH=${{ matrix.arch }} + export CGO_ENABLE=0 go build -o bbx-${GOOS}-${GOARCH} - name: run run: | - ls -al; tree + ls -al + tree - name: Upload binaries uses: actions/upload-artifact@v4 @@ -53,7 +53,7 @@ jobs: uses: softprops/action-gh-release@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - tag_name: ${{ steps.Run.outputs.current_tag }} + # tag_name: ${{ steps.variables.outputs.tag }} files: | bbx-${{ matrix.os }}-${{ matrix.arch }} @@ -79,7 +79,8 @@ jobs: - name: run run: | - ls -al; tree + ls -al + tree - name: Build and push Docker image run: |