diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf68aee..89b51b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: run: go mod download - name: Build gui run: | - fyne package -src ./cmd/dungeondraft-packager -release + fyne package -src ./cmd/dungeondraft-packager -appId io.github.ryex.dungondraft-gopackager - name: Build cli run: | go build -ldflags "-s -w" ./cmd/dungeondraft-packager-cli diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index dfca595..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: build -on: - push: - tags: - - 'v*' - -jobs: - build: - name: "Build Dungeondraft-GoPackager (${{ matrix.target.os }}, ${{ matrix.go-version }})" - runs-on: ${{ matrix.target.host || 'ubuntu-latest' }} - env: - GO111MODULE: on - strategy: - fail-fast: false - matrix: - go-version: ["1.23.x"] - target: - - os: linux - - os: windows - ext: .exe - host: windows-latest - - os: darwin - host: macos-latest - steps: - - name: Setup Go environment - id: setup-go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go-version }} - - - name: Checkout code - uses: actions/checkout@v3 - - - name: Cache build artifacts - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/.cache/fyne-cross - key: ${{ runner.os }}-build-cache-${{ hashFiles('**/go.sum') }} - - name: Install Build Deps (Linux) - if: ${{ runner.os == 'linux' }} - run: sudo apt-get install golang gcc libgl1-mesa-dev xorg-dev - - name: Install Fyne - run: go install fyne.io/fyne/v2/cmd/fyne@latest - - name: install go deps - run: go mod download - - name: Build gui - run: | - fyne package -src ./cmd/dungeondraft-packager - - name: Build cli - run: | - go build ./cmd/dungeondraft-packager-cli - - name: Upload artifacts - uses: actions/upload-pages-artifact@v3 - with: - name: Dungeondraft-GoPackager-${{ runner.os }} - path: | - dungeondraft-packager*