Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeyer committed Jun 13, 2024
2 parents de00a81 + 33bea79 commit f447f75
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 49 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
qt-version: ["6.6.1"]
qt-version: ["6.7.1"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
Expand All @@ -38,7 +38,7 @@ jobs:
version: ${{ matrix.qt-version }}
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
arch: 'linux_gcc_64'
- name: Build
shell: bash
run: |
Expand All @@ -59,15 +59,15 @@ jobs:
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libQt6OpenGL.so.6 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libQt6Widgets.so.6 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libQt6XcbQpa.so.6 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libicui18n.so.56 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libicudata.so.56 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libicuuc.so.56 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libicui18n.so.73 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libicudata.so.73 launcher/linux/x64
cp ../Qt/${{ matrix.qt-version }}/gcc_64/lib/libicuuc.so.73 launcher/linux/x64
mkdir -p launcher/linux/x64/plugins/platforms
mkdir -p launcher/linux/x64/plugins/imageformats
cp ../Qt/${{ matrix.qt-version }}/gcc_64/plugins/platforms/libqxcb.so launcher/linux/x64/plugins/platforms
cp ../Qt/${{ matrix.qt-version }}/gcc_64/plugins/imageformats/libq* launcher/linux/x64/plugins/imageformats
rm launcher/linux/x64/plugins/imageformats/libqsvg.so
chrpath -r "\$ORIGIN" launcher/linux/x64/libicu*.so.56
chrpath -r "\$ORIGIN" launcher/linux/x64/libicu*.so.73
chrpath -r "\$ORIGIN/../.." launcher/linux/x64/plugins/platforms/libqxcb.so
chrpath -r "\$ORIGIN/../.." launcher/linux/x64/plugins/imageformats/*.so
printf "[Paths]\nPrefix=.\nPlugins=plugins\n" > launcher/linux/x64/qt.conf
Expand All @@ -88,12 +88,12 @@ jobs:
OUT_FILE=$(conda build --python ${{ matrix.python-version }} --output ./.github/workflows/recipe)
mv $OUT_FILE dist
- name: Upload Wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.tool-id }}-linux-whl-${{ matrix.python-version }}
path: dist/*.whl
- name: Upload Conda Package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.tool-id }}-linux-conda-${{ matrix.python-version }}
path: dist/*.tar.bz2
Expand All @@ -102,19 +102,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-11.0]
os: [macos-12]
python-version: ["3.9", "3.10", "3.11", "3.12"]
architecture: [x86_64]
qt-version: ["6.6.1"]
qt-version: ["6.7.1"]
include:
- os: macos-latest-xlarge
- os: macos-14
python-version: "3.12"
architecture: arm64
qt-version: "6.6.1"
qt-version: "6.7.1"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
popd
python setup.py bdist_wheel
- name: Upload Wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.tool-id }}-macos-whl-${{ matrix.architecture }}-${{ matrix.python-version }}
path: dist/*.whl
Expand All @@ -199,7 +199,7 @@ jobs:
OUT_FILE=$(conda build --python ${{ matrix.python-version }} --output ./.github/workflows/recipe)
mv $OUT_FILE dist
- name: Upload Conda Package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.tool-id }}-macos-conda-${{ matrix.architecture }}-${{ matrix.python-version }}
path: dist/*.tar.bz2
Expand All @@ -210,11 +210,11 @@ jobs:
matrix:
os: [windows-2019]
python-version: ["3.9", "3.10", "3.11", "3.12"]
qt-version: ["6.6.1"]
qt-version: ["6.7.1"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
Expand Down Expand Up @@ -262,12 +262,12 @@ jobs:
OUT_FILE=$(conda build --python ${{ matrix.python-version }} --output ./.github/workflows/recipe)
mv $OUT_FILE dist
- name: Upload Wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.tool-id }}-win-whl-${{ matrix.python-version }}
path: dist/*.whl
- name: Upload Conda Package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.tool-id }}-win-conda-${{ matrix.python-version }}
path: dist/*.tar.bz2
Expand All @@ -277,24 +277,24 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download Wheel
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_wheel
with:
name: ${{ env.tool-id }}-linux-whl-${{ matrix.python-version }}
path: downloads
- name: Download Conda
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_conda
with:
name: ${{ env.tool-id }}-linux-conda-${{ matrix.python-version }}
path: conda_downloads
- name: Set up Python ${{ matrix.python-version }} with official build
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Virtual screen
Expand Down Expand Up @@ -397,29 +397,33 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-11.0]
os: [macos-12]
python-version: ["3.9", "3.10", "3.11", "3.12"]
architecture: [x86_64]
qt-version: ["6.6.1"]
qt-version: ["6.7.1"]
include:
- os: macos-latest-xlarge
- os: macos-14
python-version: "3.12"
architecture: arm64
qt-version: "6.6.1"
qt-version: "6.7.1"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download Wheel
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_wheel
with:
name: ${{ env.tool-id }}-macos-whl-${{ matrix.architecture }}-${{ matrix.python-version }}
path: downloads
- name: Download Conda
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_conda
with:
name: ${{ env.tool-id }}-macos-conda-${{ matrix.architecture }}-${{ matrix.python-version }}
path: conda_downloads
- name: Set up Python ${{ matrix.python-version }} with official build
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Test system Python installed with brew with virtual environment
shell: bash
run: |
Expand All @@ -440,10 +444,6 @@ jobs:
echo "Running test..."
${{ env.tool-exe }} nionui_app.test_ack
${{ env.tool-exe }} nionui_app.test_ack | grep ACK
- name: Set up Python ${{ matrix.python-version }} with official build
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test system Python installed with official build with virtual environment
shell: bash
run: |
Expand Down Expand Up @@ -531,21 +531,21 @@ jobs:
os: [windows-2019]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download Wheel
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_wheel
with:
name: ${{ env.tool-id }}-win-whl-${{ matrix.python-version }}
path: downloads
- name: Download Conda
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_conda
with:
name: ${{ env.tool-id }}-win-conda-${{ matrix.python-version }}
path: conda_downloads
- name: Set up Python ${{ matrix.python-version }} with official build
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Test system Python installed with official build with virtual environment
Expand Down Expand Up @@ -635,7 +635,7 @@ jobs:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Remove all the files except the ones to upload to PyPI.
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% set win_exe = "NionSwift" %}
{% set summary = "A native launcher for Nion Swift." %}

{% set version = "0.4.23" %}
{% set version = "0.4.24" %}

{% set name_u = name|replace('-', '_') %}

Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog (nionswift-tool)
==========================

0.4.24 (2024-06-12)
-------------------
- Update Qt to 6.7.1

0.4.23 (2024-01-22)
-------------------
- Add support for responding to color scheme changes (light/dark mode).
Expand Down
2 changes: 1 addition & 1 deletion launcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ option(USE_CONSOLE "Enable console" ON)
set(APP_NAME "NionSwiftLauncher")

# app version
set(APP_VERSION "0.4.23")
set(APP_VERSION "0.4.24")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)

Expand Down
2 changes: 1 addition & 1 deletion launcher/xcconfig/targetDebugNionUILauncher.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QTDIR = $(HOME)/Developer/Qt/6.6.0/macos
QTDIR = $(HOME)/Developer/Qt/6.7.0/macos

ARCHS = $(ARCHS_STANDARD)
ONLY_ACTIVE_ARCH = YES
Expand Down
2 changes: 1 addition & 1 deletion launcher/xcconfig/targetReleaseNionUILauncher.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QTDIR = $(HOME)/Developer/Qt/6.6.0/macos
QTDIR = $(HOME)/Developer/Qt/6.7.0/macos

ARCHS = $(ARCHS_STANDARD)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
tool_id = "nionswift"
launcher = "NionSwiftLauncher"

version = "0.4.23"
version = "0.4.24"


def package_files(directory, prefix, prefix_drop):
Expand Down

0 comments on commit f447f75

Please sign in to comment.