1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00

Add a CI for cmake build

This commit is contained in:
Rui Ueyama 2022-08-07 12:30:21 +08:00
parent 56e82cfc50
commit 2ea5bd3b02

View File

@ -50,6 +50,23 @@ jobs:
- name: make test-all
run: PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" make -j$(nproc) CC=gcc CXX=g++ test-all
cmake:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: rui314/setup-mold@staging
- name: install-build-deps
run: sudo apt-get update && sudo ./install-build-deps.sh
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: cmake
run: |
mkdir build
cd build
cmake ..
make -j$(nproc)
ctest -j$(nproc)
build-macos:
strategy:
matrix: