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 21, 2022
1 parent 0989456 commit bf3ade1
Show file tree
Hide file tree
Showing 2 changed files with 62 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
33 changes: 33 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 @@ -382,6 +389,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 @@ -555,6 +568,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 @@ -622,6 +642,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 @@ -782,6 +808,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 bf3ade1

Please sign in to comment.