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