Skip to content

Commit

Permalink
Removed premake5 caching and added compilation caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
Goubermouche authored Dec 17, 2023
1 parent 8dddd0f commit 8c2c7fe
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,13 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Cache Premake
id: cache-premake
uses: actions/cache@v2
with:
path: |
premake5
key: ${{ runner.os }}-premake-${{ hashFiles('**/premake5.lua') }}

- name: Install Premake
if: steps.cache-premake.outputs.cache-hit != 'true'
run: |
wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha16/premake-5.0.0-alpha16-linux.tar.gz
tar -xzvf premake-5.0.0-alpha16-linux.tar.gz
sudo mv premake5 /usr/local/bin/
sudo mv premake5 /usr/local/bin/
- name: Install Clang
run: |
Expand All @@ -40,6 +32,16 @@ jobs:
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Cache Compilation Outputs
uses: actions/cache@v2
with:
path: |
output/**/bin/
output/**/obj/
key: ${{ runner.os }}-compilation-${{ hashFiles('**/*.cpp', '**/*.h') }}
restore-keys: |
${{ runner.os }}-compilation-
- name: Run Premake
run: premake5 gmake

Expand Down

0 comments on commit 8c2c7fe

Please sign in to comment.