mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-28 16:17:51 +01:00
CI: ccache
Some checks failed
Ficus build / iso (push) Has been cancelled
Ficus build / build-ficus-toolchain (push) Has been cancelled
Unit tests / build (push) Has been cancelled
Some checks failed
Ficus build / iso (push) Has been cancelled
Ficus build / build-ficus-toolchain (push) Has been cancelled
Unit tests / build (push) Has been cancelled
This commit is contained in:
25
.github/workflows/ficus.yml
vendored
25
.github/workflows/ficus.yml
vendored
@@ -12,6 +12,8 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-ficus-toolchain:
|
build-ficus-toolchain:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CCACHE_DIR: ~/ccache-cache
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -21,7 +23,22 @@ jobs:
|
|||||||
if: env.ACT=='true'
|
if: env.ACT=='true'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install -y cmake build-essential pax gcc g++ nasm bison bzip2 flex mtools texinfo libgmp-dev libmpfr-dev libmpc-dev xorriso
|
run: sudo apt-get update && sudo apt-get install -y cmake build-essential pax gcc g++ nasm bison bzip2 flex mtools texinfo libgmp-dev libmpfr-dev libmpc-dev xorriso ccache
|
||||||
|
|
||||||
|
- name: CCache cache
|
||||||
|
id: cache-ccache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/ccache-cache
|
||||||
|
key: ${{ runner.os }}-ccache
|
||||||
|
|
||||||
|
- name: Add ccache to path
|
||||||
|
run: echo "/usr/lib/ccache" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Print ccache info
|
||||||
|
run: |
|
||||||
|
ccache -p
|
||||||
|
which gcc
|
||||||
|
|
||||||
- name: Cache generic toolchain
|
- name: Cache generic toolchain
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
@@ -38,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
|
||||||
name: Build generic toolchain
|
name: Build generic toolchain
|
||||||
run: source env.sh && toolchain_scripts/build-all.sh
|
run: source env.sh && toolchain_scripts/build-all.sh && ccache -s
|
||||||
|
|
||||||
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
|
||||||
name: Strip toolchain
|
name: Strip toolchain
|
||||||
@@ -70,7 +87,7 @@ jobs:
|
|||||||
|
|
||||||
- if: ${{ steps.cache-toolchain-s1.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-toolchain-s1.outputs.cache-hit != 'true' }}
|
||||||
name: Build ficus toolchain s1
|
name: Build ficus toolchain s1
|
||||||
run: source ${{github.workspace}}/env.sh && ${{github.workspace}}/ficus-toolchain/build-all.sh s1only
|
run: source ${{github.workspace}}/env.sh && ${{github.workspace}}/ficus-toolchain/build-all.sh s1only && ccache -s
|
||||||
|
|
||||||
- if: ${{ steps.cache-toolchain-s1.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-toolchain-s1.outputs.cache-hit != 'true' }}
|
||||||
name: Strip toolchain
|
name: Strip toolchain
|
||||||
@@ -99,7 +116,7 @@ jobs:
|
|||||||
|
|
||||||
- if: ${{ steps.cache-toolchain-s2.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-toolchain-s2.outputs.cache-hit != 'true' }}
|
||||||
name: Build ficus toolchain s2
|
name: Build ficus toolchain s2
|
||||||
run: source ${{github.workspace}}/env.sh && ${{github.workspace}}/ficus-toolchain/build-all.sh s2only
|
run: source ${{github.workspace}}/env.sh && ${{github.workspace}}/ficus-toolchain/build-all.sh s2only && ccache -s
|
||||||
|
|
||||||
- name: Save s2 toolchain
|
- name: Save s2 toolchain
|
||||||
id: cache-toolchain-s2-save
|
id: cache-toolchain-s2-save
|
||||||
|
|||||||
Reference in New Issue
Block a user