Skip to content

Commit

Permalink
native
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Dec 16, 2024
1 parent ab7dae7 commit 2d9aef0
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,57 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'maven'
check-latest: false
- name: Prepare Environment
run: |
WORKING_DIR=$PWD
cd dev-support/docker
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_TERSE=true
######
# Platform package dependency resolver
######
chmod a+x pkg-resolver/*.sh pkg-resolver/*.py
chmod a+r pkg-resolver/*.json
######
# Install packages from apt
######
sudo chmod a+w /etc
sudo apt-get -q update
sudo apt-get -q install -y --no-install-recommends \
bats clang doxygen gnupg-agent hugo libcurl4-openssl-dev libprotobuf-dev libprotoc-dev libsasl2-dev libsnappy-dev libzstd-dev yasm
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
export LANG='en_US.UTF-8'
export LANGUAGE='en_US:en'
export LC_ALL='en_US.UTF-8'
export PYTHONIOENCODING=utf-8
#######
# Set env vars for SpotBugs 4.2.2
#######
export SPOTBUGS_HOME=/opt/spotbugs
#######
# Set env vars for Google Protobuf 3.21.12
#######
export PROTOBUF_HOME=/opt/protobuf
export PATH="${PATH}:/opt/protobuf/bin"
#######
# Skip gpg verification when downloading Yetus via yetus-wrapper
#######
export HADOOP_SKIP_YETUS_VERIFICATION=true
#######
# Install packages
#######
sudo pkg-resolver/install-common-pkgs.sh
sudo pkg-resolver/install-spotbugs.sh ubuntu:focal
sudo pkg-resolver/install-boost.sh ubuntu:focal
sudo pkg-resolver/install-protobuf.sh ubuntu:focal
sudo pkg-resolver/install-hadolint.sh ubuntu:focal
sudo pkg-resolver/install-intel-isa-l.sh ubuntu:focal
cd $WORKING_DIR
- name: Build
run: mvn ${{ matrix.modules }} clean install -am -DskipTests
run: mvn ${{ matrix.modules }} -Pnative clean install -am -DskipTests
- name: Test
run: mvn ${{ matrix.modules }} test -Dsurefire.excludesFile=$PWD/dev-support/java-17/exclude-tests.txt
run: mvn ${{ matrix.modules }} -Pnative test -Dsurefire.excludesFile=$PWD/dev-support/java-17/exclude-tests.txt
- name: Upload test logs
if: failure()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 2d9aef0

Please sign in to comment.