Skip to content

Drop deprecated action in CI and update cdt container #5

Drop deprecated action in CI and update cdt container

Drop deprecated action in CI and update cdt container #5

Workflow file for this run

name: Build contracts
on:
push:
branches:
- main
- "release/*"
pull_request:
types: [assigned, opened, synchronize, reopened, labeled]
env:
BUILDER_IMAGE: "guilledk/py-leap:cdt-4.0.0"
jobs:
ubuntu-2404-build:
name: Ubuntu 24.04 | Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
set -e
export DOCKER="docker run --rm -v $(pwd):/root/target ${BUILDER_IMAGE}"
docker pull ${BUILDER_IMAGE}
echo ${DOCKER}
echo =====
mkdir build
${DOCKER} bash -c "cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=yes .."
echo =====
${DOCKER} bash -c "cd build && make -j $(nproc) VERBOSE=1"
echo =====
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ubuntu-2404-build
path: build
ubuntu-2404-parallel-test:
name: Parallel Test
runs-on: ubuntu-latest
needs: ubuntu-2404-build
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Download build
uses: actions/download-artifact@v4
with:
name: ubuntu-2404-build
- name: Parallel Test
run: |
set -e
ls -la
unzip ubuntu-2404-build.zip
export DOCKER="docker run --rm -v $(pwd):/root/target ${BUILDER_IMAGE}"
docker pull ${BUILDER_IMAGE}
${DOCKER} bash -c 'cd build/tests && ctest -j $(nproc)'