Fix bug #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu-gcc14 | |
on: | |
push: | |
branches: ["main", "dev"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
steps: | |
- name: Installation | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y valgrind libgl1-mesa-dev libglu1-mesa-dev p7zip gobjc g++-14 wget sudo | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: v2.9.1 | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: build | |
run: | | |
export XMAKE_ROOT="y" | |
g++-14 -v | |
export CXX=g++-14 | |
export CC=gcc-14 | |
xmake build -y | |
xmake install -o . | |
- name: build test | |
run: | | |
rm -rf out | |
./bin/frpc -f ./config/config.yaml -t ./template/cpp -o ./out -w ./template/web --auto_sort=1 --debug=0 | |
xmake build -y --file=./test_xmake.lua | |
xmake install -o . --file=./test_xmake.lua | |
valgrind --log-file=a.txt --tool=memcheck --leak-check=full -s --track-origins=yes ./bin/coro_bi | |
cat a.txt |