Bump tar from 7.5.10 to 7.5.11 in /static/skywire-manager-src #1963
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [pull_request] | |
| name: Test | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.6' | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Install Dependencies | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libglfw3-dev \ | |
| libgl1-mesa-dev \ | |
| xorg-dev \ | |
| libglu1-mesa-dev \ | |
| libusb-1.0-0-dev \ | |
| shellcheck | |
| make install-shellcheck | |
| - name: Lint Shell Scripts | |
| run: make lint-shell | |
| - name: Check Format and Run Tests | |
| run: make check | |
| - name: Build | |
| run: make build | |
| - name: Setup SSH Key, Build and Run E2E | |
| shell: bash | |
| run: | | |
| set -e | |
| sudo ./ci_scripts/create-ip-aliases.sh | |
| make e2e-build | |
| make e2e-run | |
| env: | |
| DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
| DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
| - name: Test E2E | |
| run: make e2e-test | |
| - name: Clean E2E | |
| run: make e2e-stop | |
| darwin: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.6' | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Install Requirements | |
| run: | | |
| go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
| brew install glfw | |
| brew install --quiet libusb || brew upgrade --quiet libusb | |
| brew install --quiet hidapi || brew upgrade --quiet hidapi | |
| # Set CGO flags for both general brew prefix and specific hidapi/libusb paths | |
| BREW_PREFIX=$(brew --prefix) | |
| HIDAPI_PREFIX=$(brew --prefix hidapi) | |
| LIBUSB_PREFIX=$(brew --prefix libusb) | |
| echo "CGO_CFLAGS=-I${BREW_PREFIX}/include -I${HIDAPI_PREFIX}/include -I${LIBUSB_PREFIX}/include" >> $GITHUB_ENV | |
| echo "CGO_LDFLAGS=-L${BREW_PREFIX}/lib -L${HIDAPI_PREFIX}/lib -L${LIBUSB_PREFIX}/lib" >> $GITHUB_ENV | |
| shell: bash | |
| - name: Checking Format and Testing | |
| run: | | |
| # Run lint excluding cmd/release due to CGO hidapi dependency issues | |
| GO111MODULE=on go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.1 run -c .golangci.yml --skip-dirs cmd/release ./cmd/... | |
| GO111MODULE=on go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.1 run -c .golangci.yml ./pkg/... | |
| make check-cg check-help | |
| # Run tests excluding cmd/release due to CGO hidapi dependency issues | |
| GO111MODULE=on go test -cover -timeout=5m -mod=vendor -tags no_ci ./internal/... ./pkg/... | |
| # Test cmd packages individually, excluding cmd/release | |
| for pkg in $(go list ./cmd/...); do | |
| if [[ "$pkg" != *"cmd/release"* ]]; then | |
| echo "Testing $pkg" | |
| GO111MODULE=on go test -cover -timeout=5m -mod=vendor -tags no_ci "$pkg" || exit 1 | |
| fi | |
| done | |
| GO111MODULE=on go test -cover -timeout=5m -mod=vendor -tags no_ci | |
| go run . --help | |
| go run . cli config gen -dnw | |
| go run . cli config gen --nofetch -nw | |
| - name: Build | |
| run: make build | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.6' | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Install Requirements | |
| shell: pwsh | |
| run: | | |
| choco install make | |
| go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
| # Install libusb, hidapi, and pkg-config via msys2/mingw for x64 | |
| C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm mingw-w64-x86_64-libusb mingw-w64-x86_64-hidapi mingw-w64-x86_64-pkg-config" | |
| # Add msys2 mingw64 to PATH for finding libraries and pkg-config | |
| echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "CGO_CFLAGS=-IC:/msys64/mingw64/include" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| echo "CGO_LDFLAGS=-LC:/msys64/mingw64/lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| - name: Checking (lint + test) | |
| run: | | |
| $env:GO111MODULE='on' | |
| make check-windows | |
| shell: powershell | |
| - name: Build | |
| shell: powershell | |
| run: make build-windows |