Skip to content

Commit

Permalink
ci: Add gresource compilation step for macOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
silviot committed Dec 8, 2024
1 parent d00bb18 commit db6f8f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,19 @@ jobs:
PKG_CONFIG_SYSROOT_DIR: ""
PKG_CONFIG_PATH: "${{ env.PKG_CONFIG_PATH }}"
run: cargo build --release --target ${{ matrix.target }}
- name: Install glib-compile-resources
if: matrix.arch == 'x86_64'
run: arch -x86_64 /usr/local/bin/brew install glib || echo ERROR

- name: Install glib-compile-resources ARM64
if: matrix.arch == 'arm64'
run: brew install glib || echo ERROR

- name: Compile GResource
run: |
mkdir -p target/${{ matrix.target }}/release/
glib-compile-resources --sourcedir src --target target/${{ matrix.target }}/release/aardvark.gresource src/aardvark.gresource.xml
- name: Create App Bundle
run: |
mkdir -p Aardvark.app/Contents/{MacOS,Resources}
Expand Down

0 comments on commit db6f8f7

Please sign in to comment.