diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1dd4c1..e98c10e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,8 @@ env: deb_packages: >- libreadline-dev libwxgtk3.0-gtk3-dev + wx-common + wx3.0-headers jobs: linux: @@ -14,7 +16,9 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Fetch tags + run: git fetch --prune --unshallow --tags - name: Install dependencies run: | sudo apt-get update @@ -35,7 +39,9 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Fetch tags + run: git fetch --prune --unshallow --tags - name: Install dependencies run: | brew update @@ -55,17 +61,25 @@ jobs: runs-on: windows-latest strategy: fail-fast: false + matrix: + include: + - { sys: mingw32, env: i686 } steps: - - uses: actions/checkout@v3 - - uses: numworks/setup-msys2@v1 + - uses: actions/checkout@v4 + - name: Fetch tags + run: git fetch --prune --unshallow --tags + - uses: msys2/setup-msys2@v2 with: - msystem: MSYS32 - - run: msys2do pacman --noconfirm -S -noconfirm --noprogressbar - - run: msys2do pacman --noconfirm -U mingw-w64-*-any.pkg.tar.xz - - run: | + msystem: ${{matrix.sys}} + install: >- + mingw-w64-${{matrix.env}}-make + mingw-w64-${{matrix.env}}-gcc + - name: Build + shell: msys2 {0} + run: | set MSYSTEM=MINGW32 - msys2do make -j - msys2do make install + make -j + make install bin/bossac --help - uses: actions/upload-artifact@v3 if: always() diff --git a/Makefile b/Makefile index 596397f..0945036 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Version # VERSION?=$(shell git describe --tags --dirty) -WXVERSION=3.2 +WXVERSION=3.0 # # Source files @@ -35,7 +35,7 @@ OS:=$(shell uname -s | cut -c -7) # ifeq ($(OS),MINGW32) # Use wxWindows development branch to work around font scaling issues on Windows -WXVERSION=3.2 +WXVERSION=3.0 EXE=.exe COMMON_SRCS+=WinSerialPort.cpp WinPortFactory.cpp COMMON_LDFLAGS=-Wl,--enable-auto-import -static -static-libstdc++ -static-libgcc @@ -99,8 +99,8 @@ endif # ifeq ($(OS),Darwin) COMMON_SRCS+=PosixSerialPort.cpp OSXPortFactory.cpp -COMMON_CXXFLAGS=-arch x86_64 -mmacosx-version-min=10.9 -COMMON_LDFLAGS=-arch x86_64 -mmacosx-version-min=10.9 +COMMON_CXXFLAGS=-arch x86_64 -mmacosx-version-min=11 -std=c++14 +COMMON_LDFLAGS=-arch x86_64 -mmacosx-version-min=11 APP=BOSSA.app DMG=bossa-$(VERSION).dmg VOLUME=BOSSA