Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
snail committed Oct 24, 2024
1 parent 11c1ae5 commit d81d475
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -79,7 +79,8 @@ jobs:

- name: run
run: |
ls -al; tree
ls -al
tree
- name: Build and push Docker image
run: |
Expand Down

0 comments on commit d81d475

Please sign in to comment.