Skip to content

fix

fix #23

Workflow file for this run

# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2024, Intel Corporation
#
name: DAOS tests
on:
push:
permissions: {}
jobs:
daos_test:
name: DAOS tests
runs-on: ubuntu-latest
steps:
- name: Clone the DAOS repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: daos-stack/daos
ref: release/2.6
path: daos
- name: Clone the PMDK repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: pmem/pmdk
path: pmdk
- name: Apply DAOS patches
working-directory: daos
run: git apply ../pmdk/src/test/daos_dtx/*.patch
- name: Install DAOS dependencies
working-directory: daos
run: |
sudo pip install -r requirements-build.txt
sudo utils/scripts/install-ubuntu.sh
# https://go.dev/doc/install
- name: Update the golang package
env:
GOLANG_VER: go1.23.1 # >= 1.21 because of https://go.dev/doc/toolchain
run: |
sudo apt-get remove golang-go
wget https://go.dev/dl/${{ env.GOLANG_VER }}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf ${{ env.GOLANG_VER }}.linux-amd64.tar.gz
- name: Install Valgrind
working-directory: pmdk/utils/docker/images/
run: sudo ./install-valgrind.sh
- name: Generate ${{ env.OPTS_FILE }}
working-directory: daos
env:
OPTS_FILE: daos.conf
run: |
cat <<-EOF >> ${{ env.OPTS_FILE }}
BUILD_TYPE = 'debug'
TARGET_TYPE = 'debug'
PREFIX = '/opt/daos/'
GO_BIN = '/usr/local/go/bin/go'
EOF
cat ${{ env.OPTS_FILE }}
- name: Build DAOS
working-directory: daos
run: |
git submodule init
git submodule update
scons install -j16 --build-deps=yes