Skip to content

Rework testing substantially (and several bugfixes along the way) #55

Rework testing substantially (and several bugfixes along the way)

Rework testing substantially (and several bugfixes along the way) #55

Workflow file for this run

name: IBM i build CI
on:
push:
branches: [ "main" ]
paths:
- 'ile/**'
pull_request:
branches: [ "main" ]
paths:
- 'ile/**'
env:
remote_build_dir: /home/${{ secrets.IBMI_USER }}/build/${{ github.sha }}
jobs:
build:
runs-on: ubuntu-latest
environment: OSSBUILD
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
always-auth: true
node-version: 18
- run: npm i -g @ibm/ibmi-ci
- name: Get short SHA ID
run: |
echo "short_sha=$(echo ${{ github.sha }} | head -c 5)" >> $GITHUB_ENV
cat $GITHUB_ENV
- name: Deploy to IBM i
run: |
ici \
--rcwd "$remote_build_dir" \
--push "." \
--cmd "/QOpenSys/pkgs/bin/gmake -C ile BUILDLIB=MZNCI$short_sha uninstall all" \
--ignore --cl "dltlib MZNCI$short_sha" \
--rcwd ".." \
--ignore --cmd "rm -fr $remote_build_dir"
env:
IBMI_HOST: ${{ secrets.IBMI_HOST }}
IBMI_USER: ${{ secrets.IBMI_USER }}
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }}
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }}