Skip to content

Commit

Permalink
use env variable for submodule paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mickflemm committed Nov 8, 2024
1 parent 4af12a5 commit 792c6ce
Showing 1 changed file with 17 additions and 36 deletions.
53 changes: 17 additions & 36 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ on:
branches:
- master

env:
submodule_paths: |
binutils
dejagnu
gcc
gdb
glibc
llvm
musl
newlib
qemu
uclibc-ng
.git/modules
jobs:
submodule_cache:
name: Initialize submodule cache
Expand All @@ -29,18 +43,7 @@ jobs:
- name: Setup submodule cache
uses: actions/cache@v4
with:
path: |
binutils
gcc
gdb
glibc
llvm
musl
newlib
uclibc-ng
qemu
dejagnu
.git/modules
path: ${{ env.submodule_paths }}
key: submodule-cache-${{ github.run_id }}-${{ github.run_attempt }}

build:
Expand Down Expand Up @@ -69,18 +72,7 @@ jobs:
- name: Load submodule cache
uses: actions/cache/restore@v4
with:
path: |
binutils
gcc
gdb
glibc
llvm
musl
newlib
uclibc-ng
qemu
dejagnu
.git/modules
path: ${{ env.submodule_paths }}
key: submodule-cache-${{ github.run_id }}-${{ github.run_attempt }}

- name: build toolchain
Expand Down Expand Up @@ -152,18 +144,7 @@ jobs:
- name: Load submodule cache
uses: actions/cache/restore@v4
with:
path: |
binutils
gcc
gdb
glibc
llvm
musl
newlib
uclibc-ng
qemu
dejagnu
.git/modules
path: ${{ env.submodule_paths }}
key: submodule-cache-${{ github.run_id }}-${{ github.run_attempt }}

- name: build toolchain
Expand Down

0 comments on commit 792c6ce

Please sign in to comment.