Skip to content

Commit

Permalink
Add Ubuntu 22.04 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDenisov authored and AlexDenisov committed Jun 30, 2023
1 parent b42f133 commit 6f7122d
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 2 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/ci-ubuntu-22.04.yml
@@ -0,0 +1,79 @@
name: Ubuntu 22.04 CI

env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
pull_request:
push:
branches:
- main
tags:
- "**"

jobs:
ubuntu-20-04:
name: LLVM ${{ matrix.LLVM_VERSION }}
runs-on: ubuntu-latest
container: ubuntu:22.04
strategy:
matrix:
LLVM_VERSION: [11, 13, 14, 15]
env:
DISTR_REPO: "ubuntu/jammy"
DEBIAN_FRONTEND: noninteractive

steps:
- name: Debugging
run: |
env | sort
cat $GITHUB_EVENT_PATH
- name: Install software
run: |
apt-get update && apt-get install -y software-properties-common
add-apt-repository ppa:git-core/ppa
apt-get update && apt-get install -y python3-pip curl git libunwind8
pip3 install ansible
- name: Install git
run: |
apt-get update
apt-get install -y git
git config --global --add safe.directory $PWD
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true

- uses: ./actions/detect-package-metadata
id: metadata

- name: Run CI task
run: |
cd infrastructure && \
ansible-playbook ubuntu-playbook.yaml \
-e llvm_version="${{ matrix.LLVM_VERSION }}" \
-e source_dir=$PWD/.. \
-e gitref=$GITHUB_SHA \
-e host=localhost \
-e mull_version=${{ steps.metadata.outputs.version }}${{ steps.metadata.outputs.suffix }} \
--verbose
- name: Publish package
if: env.CLOUDSMITH_API_KEY != null
run: |
cloudsmith push deb \
mull-project/mull-${{ steps.metadata.outputs.channel }}/${{ env.DISTR_REPO }} \
infrastructure/packages/`cat infrastructure/PACKAGE_FILE_NAME`.deb
- name: Move package
run: |
mkdir -p /tmp/packages
mv infrastructure/packages/`cat infrastructure/PACKAGE_FILE_NAME`.deb /tmp/packages/`cat infrastructure/PACKAGE_FILE_NAME`.deb
- uses: ./actions/attach-package
with:
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/mull-20.04.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get install -y tzdata
apt-get install -y git curl cmake ninja-build libz-dev libsqlite3-dev ncurses-dev liblzma-dev
curl -1sLf 'https://dl.cloudsmith.io/public/mull-project/mull-stable/setup.deb.sh' | bash
apt-get install -y clang-12 libclang-12-dev mull-12=0.20.0
apt-get install -y clang-12 libclang-12-dev mull-12=0.21.0
- uses: actions/checkout@v3
with:
Expand Down
28 changes: 27 additions & 1 deletion infrastructure/helpers/variables.yaml
Expand Up @@ -6,12 +6,18 @@ SDKROOT: /

llvm_mapping:
macos:
"15":
"16":
cmake_search_paths: "/usr/local/opt/llvm/lib/cmake/llvm/;/usr/local/opt/llvm/lib/cmake/clang/"
packages:
- llvm
cmake_cc: /usr/local/opt/llvm/bin/clang
cmake_cxx: /usr/local/opt/llvm/bin/clang++
"15":
cmake_search_paths: "/usr/local/opt/llvm@15/lib/cmake/llvm/;/usr/local/opt/llvm@15/lib/cmake/clang/"
packages:
- llvm@15
cmake_cc: /usr/local/opt/llvm@15/bin/clang
cmake_cxx: /usr/local/opt/llvm@15/bin/clang++
"14":
cmake_search_paths: "/usr/local/opt/llvm@14/lib/cmake/llvm/;/usr/local/opt/llvm@14/lib/cmake/clang/"
packages:
Expand All @@ -38,6 +44,26 @@ llvm_mapping:
cmake_cxx: /usr/local/opt/llvm@11/bin/clang++

ubuntu:
"15":
cmake_search_paths: "/usr/lib/llvm-15/cmake/;/usr/lib/cmake/clang-15/"
packages:
- llvm-15-dev
- libclang-15-dev
- libc++-15-dev
- libc++abi-15-dev
- clang-15
cmake_cc: clang-15
cmake_cxx: clang++-15
"14":
cmake_search_paths: "/usr/lib/llvm-14/cmake/;/usr/lib/cmake/clang-14/"
packages:
- llvm-14-dev
- libclang-14-dev
- libc++-14-dev
- libc++abi-14-dev
- clang-14
cmake_cc: clang-14
cmake_cxx: clang++-14
"13":
cmake_search_paths: "/usr/lib/llvm-13/cmake/;/usr/lib/cmake/clang-13/"
packages:
Expand Down

0 comments on commit 6f7122d

Please sign in to comment.