From 5590b116917b305c5ebe39c90b40a52ce6d49a89 Mon Sep 17 00:00:00 2001 From: Ruslan Iushchenko Date: Thu, 10 Oct 2024 10:24:31 +0200 Subject: [PATCH] Fix build CI --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60bba691..a2d7c039 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: - "spark-cobol/**" - "project/**" - "build.sbt" + - ".github/workflows/build.yml" jobs: build-sbt: @@ -41,6 +42,15 @@ jobs: java-version: 8 cache: sbt - name: Install sbt - run: yum -y install sbt + run: | + sudo apt-get update + sudo apt-get install apt-transport-https curl gnupg -yqq + echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list + echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list + curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import + sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg + sudo apt-get update + sudo apt-get install sbt + - name: Build and run tests run: sbt ++${{matrix.scala}} test -DSPARK_VERSION=${{matrix.spark}}