Cache ctr_firm_builder.

This commit is contained in:
profi200 2023-05-02 02:35:54 +02:00 committed by profi200
parent 3d8a24769d
commit cecd0d31f3
No known key found for this signature in database
GPG Key ID: FD2BAB7782919B0A
1 changed files with 15 additions and 5 deletions

View File

@ -19,17 +19,27 @@ jobs:
with:
fetch-depth: 1
submodules: recursive
- name: Install dependencies
- name: Get ctr_firm_builder commit
run: echo "FIRM_BUILDER_COMMIT=$(git ls-remote https://github.com/derrekr/ctr_firm_builder.git HEAD | cut -f1)" >> $GITHUB_ENV
- name: Cache ctr_firm_builder
id: cache-firm-builder
uses: actions/cache@v3
with:
path: ctr_firm_builder
key: ${{ runner.os }}-${{ env.FIRM_BUILDER_COMMIT }}
- name: Install ctr_firm_builder dependencies
if: steps.cache-firm-builder.outputs.cache-hit != 'true'
run: |
apt-get update
apt-get -y install gcc
- name: Build ctr_firm_builder
uses: actions/checkout@v3
with:
repository: derrekr/ctr_firm_builder
path: ctr_firm_builder
if: steps.cache-firm-builder.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --recurse-submodules https://github.com/derrekr/ctr_firm_builder.git
cd ctr_firm_builder
make