[MacOS Workflow] New dependency tarball for macOS Sonora.

This commit is contained in:
John Ralls 2024-05-04 11:47:24 -07:00
parent 64a3a38945
commit b4d92c50fb

View File

@ -20,7 +20,7 @@ jobs:
uses: carlosperate/download-file-action@v2 uses: carlosperate/download-file-action@v2
id: dependencies id: dependencies
with: with:
file-url: 'https://downloads.sourceforge.net/gnucash/Dependencies/gnucash-4.900-mac-dependencies.tar.xz' file-url: 'https://downloads.sourceforge.net/gnucash/Dependencies/gnucash-5.6-mac-dependencies.tar.xz'
file-name: gnucash-dependencies.tar.xz file-name: gnucash-dependencies.tar.xz
- name: download googletest - name: download googletest
uses: carlosperate/download-file-action@v2 uses: carlosperate/download-file-action@v2
@ -29,25 +29,23 @@ jobs:
with: with:
file-url: 'https://github.com/google/googletest/archive/release-1.10.0.tar.gz' file-url: 'https://github.com/google/googletest/archive/release-1.10.0.tar.gz'
file-name: googletest.tar.gz file-name: googletest.tar.gz
- run: | - name: Extract Dependencies
cd $HOME run: |
mkdir gnucash mkdir -p $HOME/gnucash/inst
cd gnucash cd $HOME/gnucash/inst
tar -xf $GITHUB_WORKSPACE/gnucash-dependencies.tar.xz tar -xf $GITHUB_WORKSPACE/gnucash-dependencies.tar.xz
mkdir source mkdir $HOME/gnucash/source
cd source cd $HOME/gnucash/source
tar -xf $GITHUB_WORKSPACE/googletest.tar.gz tar -xf $GITHUB_WORKSPACE/googletest.tar.gz
mv googletest-* googletest mv googletest-* googletest
cd ..
ls source
- name: Configure GnuCash - name: Configure GnuCash
run: | run: |
mkdir build mkdir $HOME/gnucash/build
cd build cd $HOME/gnucash/build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_PREFIX_PATH=$PREFIX -DWITH_PYTHON=ON -DGTEST_ROOT=$SRCROOT/googletest $GITHUB_WORKSPACE cmake -GNinja -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_PREFIX_PATH=$PREFIX -DWITH_PYTHON=ON -DGTEST_ROOT=$SRCROOT/googletest $GITHUB_WORKSPACE
- name: Build and Test GnuCash - name: Build and Test GnuCash
run: | run: |
cd build cd $HOME/gnucash/build
ninja ninja
ninja check ninja check
env: env: