fix(ci): Add gumbo-parser dependency and build tut2

- Add gumbo-parser to macOS and Linux CI dependencies
- Update workflow to build and release tut2 (v2.0) instead of legacy tut
This commit is contained in:
m1ngsama 2025-12-27 15:38:48 +08:00
parent 18f7804145
commit 584660a518

View file

@ -26,13 +26,13 @@ jobs:
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
run: | run: |
brew update brew update
brew install cmake ncurses curl brew install cmake ncurses curl gumbo-parser
- name: Install dependencies (Linux) - name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y cmake libncursesw5-dev libcurl4-openssl-dev sudo apt-get install -y cmake libncursesw5-dev libcurl4-openssl-dev libgumbo-dev
- name: Configure CMake - name: Configure CMake
run: | run: |
@ -47,7 +47,7 @@ jobs:
- name: Rename binary with platform suffix - name: Rename binary with platform suffix
run: | run: |
mv build/tut build/tut-${{ matrix.name }} mv build/tut2 build/tut-${{ matrix.name }}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4