on: [push] jobs: build: runs-on: ubuntu-latest trategy: matrix: go-os: [ 'linux' ] go-arch: [ 'amd64', 'arm64' ] steps: - name: Setup repository uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v5 with: go-version: '1.22.x' - name: Display Go version run: go version - name: Install dependencies for ${{ matrix.go-os }} ${{ matrix.go-arch }} run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go get -v - name: Test for ${{ matrix.go-os }} ${{ matrix.go-arch }} run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go test -v ./... - name: Build for ${{ matrix.go-os }} ${{ matrix.go-arch }} run: GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -v ./cmd/update-ip - name: Upload Go test results for ${{ matrix.go-os }} ${{ matrix.go-arch }} uses: actions/upload-artifact@v4 with: name: update-ip_${{ matrix.go-os }}_${{ matrix.go-arch }} path: update-ip