Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2 -> 4.0] Pinned Builds manual dispatch workflow in CI #1338

Merged
merged 35 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0dbfb1a
Creating a shell of the initial pinned_build.yaml workflow to be merg…
oschwaldp-oci Jun 14, 2023
a886743
Initial work to run pinned_build script on base images.
oschwaldp-oci Jun 14, 2023
da6a068
Script already runs cpack, remove. Break artifact check into own step…
oschwaldp-oci Jun 14, 2023
9047d11
For now run on github runner.
oschwaldp-oci Jun 14, 2023
7c10660
Not using cached build environments so removing this job.
oschwaldp-oci Jun 14, 2023
5523010
Fix syntax and forgotten run command.
oschwaldp-oci Jun 14, 2023
74fb161
Add pinned to artifact name and don't upload dev artifact by filterin…
oschwaldp-oci Jun 14, 2023
7b7027c
Not using cached build environments so removing this job.
oschwaldp-oci Jun 14, 2023
e4819c3
Merge branch 'init-pinned-builds-workflow-in-ci' into pinned-builds-w…
oschwaldp-oci Jun 14, 2023
e4b28a7
Remove empty jobs section.
oschwaldp-oci Jun 14, 2023
39a5ba8
Have to have a job for github. Add temp job.
oschwaldp-oci Jun 14, 2023
fc2166a
Merge branch 'init-pinned-builds-workflow-in-ci' into pinned-builds-w…
oschwaldp-oci Jun 14, 2023
20f45e5
Add conditional step to add updated apt repository for git.
oschwaldp-oci Jun 14, 2023
f4b39ea
Use single quotes.
oschwaldp-oci Jun 14, 2023
78dd785
Need software-properties-common and a apt-get update to get add-apt-r…
oschwaldp-oci Jun 14, 2023
32de87b
Update package lists first.
oschwaldp-oci Jun 14, 2023
feeee5e
Say yes.
oschwaldp-oci Jun 14, 2023
449f371
Skip wildcards in upload-artifact and capture artifact name with rege…
oschwaldp-oci Jun 14, 2023
31fd136
Something is not matching up with expected dir or file structure.
oschwaldp-oci Jun 15, 2023
20e59a9
Not finding deb packages. check dir structure some more.
oschwaldp-oci Jun 15, 2023
b7b4554
Fix spelling causing issue with GITHUB_ENV. And trying again to get a…
oschwaldp-oci Jun 15, 2023
0f25eaa
Remove quotes from path for upload.
oschwaldp-oci Jun 15, 2023
ae2679e
Cleanup.
oschwaldp-oci Jun 15, 2023
d6cd2c9
LEAP_PINNED_INSTALL_PREFIX knob to set pinned_build.sh CMAKE_INSTALL_…
spoonincode Jun 16, 2023
93833b8
Simplify naming and path matching for artifact.
oschwaldp-oci Jun 16, 2023
1ec9897
Try newly added self hosted runner for pinned builds.
oschwaldp-oci Jun 16, 2023
02c43ca
Use enf-x86-beefy-long runner
oschwaldp-oci Jun 22, 2023
e3976b8
Merge pull request #1310 from AntelopeIO/pinned_build_install_prefix_…
oschwaldp-oci Jun 22, 2023
ed854f2
Merge pull request #1291 from AntelopeIO/pinned-builds-workflow-in-ci
oschwaldp-oci Jun 22, 2023
c74fde2
Merge branch 'release/3.1' into pinned-builds-workflow-in-ci-3.2
oschwaldp-oci Jun 22, 2023
9e82b16
Update artifact name that was changed in 3.2
oschwaldp-oci Jun 22, 2023
b194862
Skip parallel tests on ubuntu18 (as done in build.yaml).
oschwaldp-oci Jun 22, 2023
2a13774
Merge pull request #1335 from AntelopeIO/pinned-builds-workflow-in-ci…
oschwaldp-oci Jun 22, 2023
a3b6cfb
Merge branch 'release/3.2' into pinned-builds-workflow-in-ci-4.0
oschwaldp-oci Jun 22, 2023
67b4379
Fix lost quotes in merge.
oschwaldp-oci Jun 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/pinned_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "Pinned Build"

on:
workflow_dispatch:

permissions:
packages: read
contents: read

defaults:
run:
shell: bash

jobs:
Build:
name: Build
strategy:
fail-fast: false
matrix:
platform: [ubuntu18, ubuntu20, ubuntu22]
runs-on: ["self-hosted", "enf-x86-beefy-long"]
container: ${{ matrix.platform == 'ubuntu18' && 'ubuntu:bionic' || matrix.platform == 'ubuntu20' && 'ubuntu:focal' || 'ubuntu:jammy' }}
steps:
- name: Conditionally update git repo
if: ${{ matrix.platform == 'ubuntu18' }}
run: |
apt-get update
apt-get install -y software-properties-common
apt-get update
add-apt-repository ppa:git-core/ppa
- name: Update and Install git
run: |
apt-get update
apt-get install -y git
git --version
- name: Clone leap
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
# https://github.com/actions/runner/issues/2033
chown -R $(id -u):$(id -g) $PWD
./scripts/install_deps.sh
- name: Build Pinned Build
env:
LEAP_PINNED_INSTALL_PREFIX: /usr
run: |
./scripts/pinned_build.sh deps build "$(nproc)"
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: leap-${{matrix.platform}}-pinned-amd64
path: build/leap_*.deb
- name: Run Parallel Tests
if: ${{ matrix.platform != 'ubuntu18' }}
run: |
cd build
ctest --output-on-failure -j $(nproc) -LE "(nonparallelizable_tests|long_running_tests)" --timeout 420
2 changes: 1 addition & 1 deletion scripts/pinned_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pushdir "${LEAP_DIR}"

# build Leap
echo "Building Leap ${SCRIPT_DIR}"
try cmake -DCMAKE_TOOLCHAIN_FILE="${SCRIPT_DIR}/pinned_toolchain.cmake" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${LLVM_DIR}/lib/cmake" -DCMAKE_PREFIX_PATH="${BOOST_DIR}/bin" "${SCRIPT_DIR}/.."
try cmake -DCMAKE_TOOLCHAIN_FILE=${SCRIPT_DIR}/pinned_toolchain.cmake -DCMAKE_INSTALL_PREFIX=${LEAP_PINNED_INSTALL_PREFIX:-/usr/local} -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=${LLVM_DIR}/lib/cmake -DCMAKE_PREFIX_PATH=${BOOST_DIR}/bin ${SCRIPT_DIR}/..

try make -j "${JOBS}"
try cpack
Expand Down