Skip to content

Commit

Permalink
Add ccache step to speedup the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
mandruis7 authored Dec 26, 2021
1 parent e8a69f9 commit 91cf37a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ jobs:
build-proton-ge:
runs-on: ubuntu-latest
steps:
- name: Clone repo
run: git clone --recurse-submodules ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} .

- uses: actions/checkout@master
with:
submodules: false

- name: Get Proton Versions
run: echo "RELEASE_VERSION=$(cat VERSION)" >> $GITHUB_ENV

Expand All @@ -20,10 +18,6 @@ jobs:
- name: Test sha512sum availability
run: echo "hello" | sha512sum

- name: Update submodules
run: |
set -o xtrace
git submodule update --init --recursive
- name: Add architecture i386
run: sudo dpkg --add-architecture i386

Expand Down Expand Up @@ -55,6 +49,14 @@ jobs:
working-directory: ./build
run: mkdir build

- name: Cache ccache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-proton-${{ github.run_id }}
restore-keys: |
ccache-proton
- name: Configure build proton
working-directory: ./build/build
run: ../../configure.sh --build-name="${{ env.RELEASE_VERSION }}" --enable-ccache
Expand All @@ -78,5 +80,5 @@ jobs:
repo_token: ${{ secrets.PROTON_GE_GITHUB_ACTIONS_BUILD }}
file: build/build/${{ env.RELEASE_VERSION }}.tar.gz
file_glob: true
tag: ${{ env.RELEASE_VERSION }}
tag: "${{ env.RELEASE_VERSION }}-build-${{ github.run_number }}"
overwrite: false

0 comments on commit 91cf37a

Please sign in to comment.