Update lib cache #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manually update lib cache | ||
on: | ||
workflow_dispatch | ||
concurrency: | ||
group: "update-lib-cache" | ||
jobs: | ||
x86_64-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
fail-fast: false | ||
include: | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu20.04-builder:20230807 | ||
name: ${{ matrix.image }} | ||
container: | ||
image: ${{ matrix.image }} | ||
options: --user pony | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache Libs | ||
id: cache-libs | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/libs | ||
key: libs-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }} | ||
- name: Build Libs | ||
if: steps.cache-libs.outputs.cache-hit != 'true' | ||
run: make libs build_flags=-j8 |