Skip to content

Update buildcache.cmake #262

Update buildcache.cmake

Update buildcache.cmake #262

Workflow file for this run

name: linux build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: [ self-hosted, linux, x64 ]
container:
image: ghcr.io/julianharbarth/docker-cpp-build:master
volumes:
- ${{ github.event.repository.name }}-${{ matrix.config.preset }}-deps:/deps
- ${{ github.event.repository.name }}-${{ matrix.config.preset }}-buildcache:/buildcache
strategy:
fail-fast: false
matrix:
config:
- preset: clang-release
artifact: linux-amd64
- preset: gcc-release
- preset: gcc-cista-release
- preset: clang-cista-release
- preset: clang-tidy
- preset: clang-sanitizer
- preset: clang-cista-tidy
- preset: clang-cista-sanitizer
env:
BUILDCACHE_DIR: /buildcache
BUILDCACHE_DIRECT_MODE: true
BUILDCACHE_MAX_CACHE_SIZE: 26843545600
BUILDCACHE_LUA_PATH: ${{ github.workspace }}/tools
steps:
# we need to checkout the repository to get the actions
- name: checkout repository
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 19.1
- name: get deps
run: ln -s /deps deps
- name: build soro-s
uses: ./.github/actions/build
with:
preset: ${{ matrix.config.preset }}
- name: test soro-s
uses: ./.github/actions/test
- name: create and upload artifact
if: matrix.config.artifact
uses: ./.github/actions/create-artifact
with:
preset: ${{ matrix.config.preset }}
artifact: ${{ matrix.config.artifact }}
github_token: ${{ secrets.GITHUB_TOKEN }}
docker:
if: github.event.action == 'published'
runs-on: ubuntu-22.04
needs: [ linux ]
steps:
- name: create and upload docker image
uses: ./.github/actions/create-docker
with:
github-token: ${{ secrets.GITHUB_TOKEN }}