Skip to content

update BUILDING.md instructions #48

update BUILDING.md instructions

update BUILDING.md instructions #48

Workflow file for this run

name: ubuntu-matrix
# Controls when the action will run.
on:
pull_request:
branches:
- '*'
- '*/*'
- '**'
- 'master'
- 'main'
push:
branches:
- '*'
- '*/*'
- '**'
- 'master'
- 'main'
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ubuntu-build_and_test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: styfle/[email protected]
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'recursive'
set-safe-directory: 'true'
- name: Restore build/ext
id: cache-ext-restore
uses: actions/cache/restore@v3
if: ${{ !env.ACT }}
with:
path: |
ext
key: ${{ runner.os }}-ext
- name: printenv
run: |
printenv && sudo apt-get update && \
sudo apt-get install -y python3 \
make autoconf automake \
libtool gettext util-linux bash cmake clang
- name: cmake -S . -B build && cd build && make
run: |
touch ~/GITHUB_TOKEN.txt
touch CMakeCache.txt
mkdir -p build
rm CMakeCache.txt || true
rm build/CMakeCache.txt || true
CMAKE_CXX_COMPILER=clang cmake -S . -B build && cd build && make
- name: Save build/ext
id: cache-ext-save
uses: actions/cache/save@v3
if: ${{ !env.ACT }}
with:
path: |
ext
key: ${{ steps.cache-deps-restore.outputs.cache-primary-key }}