Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Mar 1, 2024
1 parent 0280aad commit 15ad198
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ env:
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/bincache
# Use specific vcpkg version
VCPKG_COMMIT_ID: '5568f110b509a9fd90711978a7cb76bae75bb092'
# Setup clang
CC: clang-17
CXX: clang++-17

jobs:
build:
Expand All @@ -24,21 +21,18 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2
with:
submodules: true

- name: Install dependencies
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y \
gpg wget curl zip unzip tar git pkg-config build-essential software-properties-common \
ninja-build make clang-tidy cppcheck ccache \
doctest-dev clang-17 g++-13 libc++abi-13-dev libstdc++-13-dev
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 --slave /usr/bin/g++ g++ /usr/bin/g++-13
gpg wget curl zip unzip tar git pkg-config \
ninja-build clang-tidy cppcheck ccache build-essential \
doctest-dev
- name: "Create directory '${{ env.VCPKG_DEFAULT_BINARY_CACHE }}'"
run: mkdir -p $VCPKG_DEFAULT_BINARY_CACHE
Expand All @@ -54,8 +48,8 @@ jobs:
vcpkgJsonGlob: 'vcpkg.json'

- name: Run cmake
run: |
echo | clang++-17 -E -Wp,-v -
ls /usr/include/c++/13/
clang-17 -v
cmake --workflow --preset ci
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja-multi-vcpkg'
buildPreset: 'ninja-vcpkg-deb'
testPreset: 'ninja-vcpkg-deb'

0 comments on commit 15ad198

Please sign in to comment.