Skip to content

Commit

Permalink
TMP: Remove compiler option in build workflow (to see if it compiles …
Browse files Browse the repository at this point in the history
…in CI as it is)
  • Loading branch information
thomas-senechal committed Jan 15, 2024
1 parent d6d3c14 commit 41cb264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@ jobs:
target: windows
cc: x86_64-w64-mingw32-gcc
ext: .exe
compiler: go
- os: ubuntu-20.04
- os: ubuntu-22.04
arch: amd64
target: linux
compiler: go
- os: macos-latest
arch: amd64
target: darwin
compiler: wails
build-options: -s -skipbindings
- os: macos-latest
arch: arm64
target: darwin
compiler: wails
build-options: -s -skipbindings

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -63,7 +57,7 @@ jobs:
- name: Build binary for ${{ matrix.target }} on ${{ matrix.arch }}
shell: bash
run: |
${{ matrix.compiler }} build ${{ matrix.build-options }} \
go build ${{ matrix.build-options }} \
-tags desktop,production -ldflags "-X github.com/massalabs/station/int/config.Version=${{ env.VERSION }}" \
-o massastation_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}
Expand Down
8 changes: 4 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ tasks:
install:
cmds:
- echo "Installing dependencies"
- cmd: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- cmd: sudo apt update -y && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.0-dev javascriptcoregtk-4.1-dev build-essential pkg-config
platforms: [linux]
ignore_error: true
- cmd: go install github.com/wailsapp/wails/v3/cmd/wails3@latest
- cmd: go install github.com/go-swagger/go-swagger/cmd/swagger@latest
- cmd: go install golang.org/x/tools/cmd/stringer@latest
- cmd: go install go.uber.org/mock/[email protected]
- cmd: sudo apt update && sudo apt install -y libgtk-3-0 libwebkit2gtk-4.0-dev
platforms: [linux]
ignore_error: true

install-dev:
cmds:
Expand Down

0 comments on commit 41cb264

Please sign in to comment.