Build Ice #3
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: ci | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
ci: | |
name: test ccache on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
# create-symlink: true | |
key: ${{ runner.os }}-build-hello-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-build-hello- | |
${{ runner.os }}-build- | |
- name: Put ccache in path | |
run: | | |
echo "/usr/lib/ccache" >> $GITHUB_PATH | |
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH | |
echo "/opt/homebrew/opt/ccache/libexec" >> $GITHUB_PATH | |
shell: bash | |
- name: Clone Ice | |
run: git checkout https://github.com/zeroc-ice/ice.git ice | |
- name: Build Ice | |
run: | | |
cd ice/cpp | |
make -j-j$(nproc) V=1 srcs |