Skip to content

Commit

Permalink
start adding qnx workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Dec 12, 2024
1 parent 2cf377e commit b185dc1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/qnx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright (C) The c-ares project and its contributors
# SPDX-License-Identifier: MIT
name: QNX
on:
push:
pull_request:

concurrency:
group: ${{ github.ref }}-qnx
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
name: "QNX"
steps:
- name: Download SDP 8.0
env:
LICENSE_KEY: ${{ secrets.LICENSE_KEY }}
MYQNX_USER: ${{ secrets.MYQNX_USER }}
MYQNX_PASSWORD: ${{ secrets.MYQNX_PASSWORD }}
run: |
echo "Downloading QNX Software Center ..."
mkdir ${{ github.workspace }}/.qnx
curl -v --cookie-jar ${{ github.workspace }}/.qnx/myqnxcookies.auth --form "userlogin=$MYQNX_USER" --form "password=$MYQNX_PASSWORD" -X POST https://www.qnx.com/account/login.html > login_response.html
curl -v -L --cookie ${{ github.workspace }}/.qnx/myqnxcookies.auth https://www.qnx.com/download/download/77351/qnx-setup-2.0.3-202408131717-linux.run > qnx-setup-lin.run
chmod a+x qnx-setup-lin.run
./qnx-setup-lin.run force-override disable-auto-start agree-to-license-terms ${{ github.workspace }}/qnxinstall
echo "Installing License ..."
${{ github.workspace }}/qnxinstall/qnxsoftwarecenter/qnxsoftwarecenter_clt -syncLicenseKeys -myqnx.user="$MYQNX_USER" -myqnx.password="$MYQNX_PASSWORD" -addLicenseKey $LICENSE_KEY
cp -r ~/.qnx/license ${{ github.workspace }}/.qnx
echo "Downloading QNX SDP ..."
${{ github.workspace }}/qnxinstall/qnxsoftwarecenter/qnxsoftwarecenter_clt -mirror -cleanInstall -destination ${{ github.workspace }}/qnx800 -installBaseline com.qnx.qnx800 -myqnx.user="$MYQNX_USER" -myqnx.password="$MYQNX_PASSWORD"
- name: Checkout c-ares
uses: actions/checkout@v4
- name: "CMake: build c-ares"
env:
BUILD_TYPE: CMAKE
run: |
./ci/build.sh
- name: "Autotools: build c-ares"
env:
BUILD_TYPE: autotools
run: |
./ci/build.sh

0 comments on commit b185dc1

Please sign in to comment.