Skip to content

Update READMEs

Update READMEs #5

Workflow file for this run

# Copyright 2024 ABSA Group Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: CD Scala
on:
push:
branches:
- master
jobs:
build:
name: Build and deploy jar file
runs-on: ubuntu-22.04
environment: DEV
defaults:
run:
working-directory: bigfiles
strategy:
matrix:
include:
- scala: 2.12.17
scalaShort: "2.12"
- scala: 2.11.12
scalaShort: "2.11"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Scala
uses: olafurpg/setup-scala@v14
with:
java-version: "[email protected]"
- name: Build jar for Scala ${{ matrix.scala }}
run: sbt ++${{ matrix.scala }} assembly
- name: Create staging directory
run: mkdir -p staging
- name: Copy jar to staging
run: |
jar_file=$(ls target/scala-${{ matrix.scalaShort }}/dataset-comparison-*.jar)
base_name=$(basename $jar_file)
cp target/scala-${{ matrix.scalaShort }}/dataset-comparison-*.jar staging/scala-${{ matrix.scalaShort }}$base_name
echo "artifact_name=scala-${{ matrix.scalaShort }}$base_name" >> $GITHUB_ENV
ls staging
- name: Upload jar artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: bigfiles/staging