Skip to content

Commit

Permalink
avoid macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed May 3, 2024
1 parent 1ae7272 commit 0f07a3e
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/ticcltools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
needs: notification
strategy:
matrix:
os: [ubuntu-latest, macos-14]
os: [ubuntu-latest, macos-13] # macos-14 doesn't supply libtextcat
compiler: [g++, clang++]

steps:
Expand All @@ -51,7 +51,8 @@ jobs:
- uses: actions/checkout@v4.1.1
- name: Install Build Environment
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
if [ "$RUNNER_OS" == "Linux" ]
then
sudo apt-get install pkg-config autoconf-archive
else
brew upgrade
Expand All @@ -62,9 +63,10 @@ jobs:
fi
- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install libicu-dev libxml2-dev libbz2-dev;
sudo apt-get install zlib1g-dev libexttextcat-dev;
if [ "$RUNNER_OS" == "Linux" ]
then
sudo apt-get install libicu-dev libxml2-dev libbz2-dev
sudo apt-get install zlib1g-dev libexttextcat-dev
sudo apt-get install cppcheck
else
brew install libxml2
Expand All @@ -75,7 +77,8 @@ jobs:
fi
- name: Configure CppCheck
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
if [ "$RUNNER_OS" == "Linux" ]
then
cpc_opts="--enable=warning,style --inline-suppr --force -I include -I /usr/local/include --quiet --error-exitcode=0"
else
cpc_opts="--enable=warning,style --inline-suppr --force -I include --check-level=exhaustive --quiet --error-exitcode=0"
Expand All @@ -86,13 +89,13 @@ jobs:
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/ticcutils;
cd ticcutils;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
git clone https://github.com/LanguageMachines/ticcutils
cd ticcutils
bash bootstrap.sh
./configure
make
sudo make install
cd ..
- name: bootstrap
run: sh bootstrap.sh
Expand Down

0 comments on commit 0f07a3e

Please sign in to comment.