Skip to content

Commit

Permalink
Use SPARK Pro 22.1 for CI
Browse files Browse the repository at this point in the history
Ref. #768, #850
  • Loading branch information
treiher committed Jan 28, 2022
1 parent c78387e commit 1cdf18e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/actions/install_spark_pro/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Install SPARK Pro"

inputs:
version:
required: true
ssh_key:
required: true
server:
required: true

runs:
using: "composite"
steps:
- shell: bash
env:
VERSION: ${{ inputs.version }}
SSH_KEY: ${{ inputs.ssh_key }}
SERVER: ${{ inputs.server }}
run: |
eval $(ssh-agent -s)
echo "$SSH_KEY" | tr -d '\r' | ssh-add - &>/dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan $SERVER >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
scp -q ci@$SERVER:/srv/spark-pro-$VERSION-x86_64-linux-bin.tar.gz /home/runner/work/
tar -C /home/runner/work -xzf /home/runner/work/spark-pro-$VERSION-x86_64-linux-bin.tar.gz
cd /home/runner/work/spark-pro-$VERSION-*x86_64-linux-bin && ./doinstall /home/runner/work/spark
echo "/home/runner/work/spark/bin" >> $GITHUB_PATH
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ jobs:
with:
distrib: community
install_dir: /home/runner/work/gnat
- name: Install SPARK Pro
uses: ./.github/actions/install_spark_pro
if: ${{ needs.skip_check_python.outputs.should_skip != 'true' }}
with:
version: "22.1"
ssh_key: ${{ secrets.MEMCACHED_SSH_KEY }}
server: ${{ secrets.MEMCACHED_SERVER }}
- name: Install dependencies
if: ${{ needs.skip_check_python.outputs.should_skip != 'true' }}
run: |
Expand Down Expand Up @@ -381,6 +388,12 @@ jobs:
with:
distrib: community
install_dir: /home/runner/work/gnat
- name: Install SPARK Pro
uses: ./.github/actions/install_spark_pro
with:
version: "22.1"
ssh_key: ${{ secrets.MEMCACHED_SSH_KEY }}
server: ${{ secrets.MEMCACHED_SERVER }}
- name: Install dependencies
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -511,6 +524,13 @@ jobs:
with:
distrib: community
install_dir: /home/runner/work/gnat
- name: Install SPARK Pro
uses: ./.github/actions/install_spark_pro
if: ${{ needs.skip_check_spark.outputs.should_skip != 'true' }}
with:
version: "22.1"
ssh_key: ${{ secrets.MEMCACHED_SSH_KEY }}
server: ${{ secrets.MEMCACHED_SERVER }}
- name: Install dependencies
if: ${{ needs.skip_check_spark.outputs.should_skip != 'true' }}
run: |
Expand Down Expand Up @@ -674,6 +694,13 @@ jobs:
with:
distrib: community
install_dir: /home/runner/work/gnat
- name: Install SPARK Pro
uses: ./.github/actions/install_spark_pro
if: ${{ needs.skip_check_apps.outputs.should_skip != 'true' }}
with:
version: "22.1"
ssh_key: ${{ secrets.MEMCACHED_SSH_KEY }}
server: ${{ secrets.MEMCACHED_SERVER }}
- name: Install dependencies
if: ${{ needs.skip_check_apps.outputs.should_skip != 'true' }}
run: |
Expand Down

0 comments on commit 1cdf18e

Please sign in to comment.