Skip to content

ci: missing script for ubuntu oracular #2250

ci: missing script for ubuntu oracular

ci: missing script for ubuntu oracular #2250

name: Ubuntu build
on: [push,pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { deploy: true , distro: jammy, CC: gcc-12, CXX: g++-12, LDFLAGS: "" }
- { deploy: false, distro: jammy, CC: clang-14, CXX: clang++-14, LDFLAGS: "-fuse-ld=lld" }
- { deploy: true, distro: noble, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: false, distro: noble, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: true, distro: oracular, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: false, distro: oracular, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" }
container:
image: ubuntu:${{ matrix.distro }}
steps:
- name: Install git
run: |
apt-get update -qq
apt-get install -qq --force-yes git
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Dependencies
run: |
./ci/${{ matrix.distro }}.deps.sh
- name: Build
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
LDFLAGS: ${{ matrix.LDFLAGS }}
run: |
./ci/${{ matrix.distro }}.build.sh
- name: Deploy
run: |
./ci/${{ matrix.distro }}.deploy.sh
- name: Upload build
uses: actions/upload-artifact@v4
if: matrix.deploy
with:
name: ${{ matrix.distro }}-amd64
path: |
*.deb
- name: Continuous
uses: softprops/action-gh-release@v2
if: github.event_name != 'pull_request'
with:
name: "Continuous"
tag_name: "continuous"
body: ""
append_body: true
generate_release_notes: false
files: |
*.deb
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
body: ""
append_body: true
generate_release_notes: false
files: |
*.deb