-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Csaba Kiraly <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,31 @@ runs: | |
# Set GCC-14 as the default | ||
sudo update-alternatives --set gcc /usr/bin/gcc-14 | ||
- name: Install ccache on Linux/Mac | ||
if: inputs.os == 'linux' || inputs.os == 'macos' | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
create-symlink: true | ||
key: ${{ matrix.os }}-${{ matrix.builder }}-${{ matrix.cpu }}-${{ matrix.tests }}-${{ matrix.nim_version }} | ||
|
||
- name: Install ccache on Windows | ||
if: inputs.os == 'windows' | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ matrix.os }}-${{ matrix.builder }}-${{ matrix.cpu }}-${{ matrix.tests }}-${{ matrix.nim_version }} | ||
|
||
- name: Enable ccache on Windows | ||
if: inputs.os == 'windows' | ||
shell: ${{ inputs.shell }} {0} | ||
run: | | ||
CCACHED_DIR=$(dirname $(which ccache))/ccached | ||
mkdir ${CCACHED_DIR} | ||
ln -s $(which ccache) ${CCACHE_DIR}/gcc.exe | ||
ln -s $(which ccache) ${CCACHE_DIR}/g++.exe | ||
ln -s $(which ccache) ${CCACHE_DIR}/cc.exe | ||
ln -s $(which ccache) ${CCACHE_DIR}/c++.exe | ||
echo "export PATH=${CCACHE_DIR}:\$PATH" >> $HOME/.bash_profile # prefix path in MSYS2 | ||
- name: Derive environment variables | ||
shell: ${{ inputs.shell }} {0} | ||
run: | | ||
|
@@ -194,6 +219,7 @@ runs: | |
- name: Build Nim and Codex dependencies | ||
shell: ${{ inputs.shell }} {0} | ||
run: | | ||
which gcc | ||
gcc --version | ||
make -j${ncpu} CI_CACHE=NimBinaries ${ARCH_OVERRIDE} QUICK_AND_DIRTY_COMPILER=1 update | ||
echo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,13 +34,6 @@ jobs: | |
submodules: recursive | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
if: matrix.os == 'linux' || matrix.os == 'macos' | ||
with: | ||
create-symlink: true | ||
key: ${{ matrix.os }}-${{ matrix.builder }}-${{ matrix.cpu }}-${{ matrix.tests }}-${{ matrix.nim_version }} | ||
|
||
- name: Setup Nimbus Build System | ||
uses: ./.github/actions/nimbus-build-system | ||
with: | ||
|