Skip to content

Commit

Permalink
gha: Add ccache to speed up builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Oct 24, 2022
1 parent 292de93 commit cd43ed9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,22 @@ jobs:
with:
submodules: true

- name: Setup ccache
uses: hendrikmuhs/[email protected]

- name: Build
run: make -j8
run: make -j8 PREFIX="ccache aarch64-none-elf-"

- name: Install libnx master & Retry build
if: ${{ failure() }}
run: |
pushd /tmp
git clone https://github.com/switchbrew/libnx
cd libnx
make -j8
make -j8 PREFIX="ccache aarch64-none-elf-"
make install
popd
make -j8
make -j8 PREFIX="ccache aarch64-none-elf-"
- name: Upload built files
uses: actions/upload-artifact@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true

- name: Setup ccache
uses: hendrikmuhs/[email protected]

- name: update Atmosphere-libs
run: |
Expand All @@ -28,18 +31,18 @@ jobs:
popd
- name: Build
run: make -j8
run: make -j8 PREFIX="ccache aarch64-none-elf-"

- name: Install libnx master & Retry build
if: ${{ failure() }}
run: |
pushd /tmp
git clone https://github.com/switchbrew/libnx
cd libnx
make -j8
make -j8 PREFIX="ccache aarch64-none-elf-"
make install
popd
make -j8
make -j8 PREFIX="ccache aarch64-none-elf-"
- name: Upload built files
uses: actions/upload-artifact@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,23 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true

- name: Setup ccache
uses: hendrikmuhs/[email protected]

- name: Build
run: make -j8
run: make -j8 PREFIX="ccache aarch64-none-elf-"

- name: Install libnx master & Retry build
if: ${{ failure() }}
run: |
pushd /tmp
git clone https://github.com/switchbrew/libnx
cd libnx
make -j8
make -j8 PREFIX="ccache aarch64-none-elf-"
make install
popd
make -j8
make -j8 PREFIX="ccache aarch64-none-elf-"
- name: Pack
run: |
Expand Down

0 comments on commit cd43ed9

Please sign in to comment.