From 97554ae16c8d0d7b29aecbf78fc46e3386380e8e Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Fri, 26 Jun 2026 14:07:14 +0200 Subject: [PATCH] Update actions --- .github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 7 ++---- 2 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3fef997 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +on: [push, pull_request] +name: Build +jobs: + cli: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Build + run: go build -v ./... + working-directory: cmd/cbconvert + env: + CGO_ENABLED: 1 + + gui: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Install dependencies + if: runner.os == 'Linux' + run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev + - name: Build + run: go build -v ./... + working-directory: cmd/cbconvert-gui + env: + CGO_ENABLED: 1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7fea522..29c5f50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,19 +5,16 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.23.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} - env: - CGO_ENABLED: 0 steps: - name: Checkout code uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version: stable - name: Test - run: go test + run: go test -v ./... env: CGO_ENABLED: 1