Skip to content

fix build 32-bit machine constant overflow (#1500) #39

fix build 32-bit machine constant overflow (#1500)

fix build 32-bit machine constant overflow (#1500) #39

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
env:
GO_VERSION: "1.24"
permissions:
contents: write
jobs:
test-ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Set up Go 1.x.y
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout codebase
uses: actions/checkout@v3
- name: Test
shell: bash
run: |
make test TEST_FLAGS="-race -covermode=atomic"
test-macos:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
steps:
- name: Set up Go 1.x.y
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout codebase
uses: actions/checkout@v3
- name: Test
shell: bash
env:
EASEGRESS_TEST_SKIP_DOCKER: "true"
run: |
make test TEST_FLAGS="-race -coverprofile=coverage.txt -covermode=atomic"
test-win:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Set up Go 1.x.y
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout codebase
uses: actions/checkout@v3
- name: Test
env:
EASEGRESS_TEST_SKIP_DOCKER: "true"
run: |
go mod verify
go mod download
go test -v ./pkg/...
integration-test-ubuntu:
needs: [test-ubuntu, test-macos, test-win]
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up Go 1.x.y
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout codebase
uses: actions/checkout@v3
- name: Test
run: |
make integration_test
goreleaser:
runs-on: ubuntu-latest
needs: integration-test-ubuntu
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}