Skip to content

Commit

Permalink
ci: add CI jobs for TI compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
nemequ committed Sep 13, 2024
1 parent 844b8ec commit 02471d5
Showing 1 changed file with 109 additions and 94 deletions.
203 changes: 109 additions & 94 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,102 +23,117 @@ jobs:
- name: Check for changes
run: git diff --exit-code

dmc:
runs-on: windows-latest
strategy:
matrix:
version:
- "8.26"
- "8.30"
- "8.40"
- "8.50"
- "8.57"
steps:
- uses: actions/checkout@v4
- name: Install Digital Mars C/C++ Compiler
run: |
$version = "${{ matrix.version }}".Replace(".", "")
$url = "http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm${version}c.zip"
Invoke-WebRequest -Uri "${url}" -OutFile "dmc.zip"
Expand-Archive -LiteralPath "dmc.zip" -DestinationPath dmc-tmp
Move-Item -Path dmc-tmp\* -Destination dmc
working-directory: test
- name: Compile
env:
CC: dmc\bin\dmc.exe
CXX: dmc\bin\dmc.exe
run: make -f Makefile.dmc
working-directory: test
# dmc:
# runs-on: windows-latest
# strategy:
# matrix:
# version:
# - "8.26"
# - "8.30"
# - "8.40"
# - "8.50"
# - "8.57"
# steps:
# - uses: actions/checkout@v4
# - name: Install Digital Mars C/C++ Compiler
# run: |
# $version = "${{ matrix.version }}".Replace(".", "")
# $url = "http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm${version}c.zip"
# Invoke-WebRequest -Uri "${url}" -OutFile "dmc.zip"
# Expand-Archive -LiteralPath "dmc.zip" -DestinationPath dmc-tmp
# Move-Item -Path dmc-tmp\* -Destination dmc
# working-directory: test
# - name: Compile
# env:
# CC: dmc\bin\dmc.exe
# CXX: dmc\bin\dmc.exe
# run: make -f Makefile.dmc
# working-directory: test

nvhpc:
runs-on: ubuntu-latest
strategy:
matrix:
version:
# For available versions, see https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64/Packages
- "20.11"
# - "21.1" ## BROKEN. File size mismatch.
# - "21.2"
# - "21.3"
# - "21.5"
# - "21.7"
# - "21.9"
# - "21.11"
# - "22.1"
# - "22.2"
# - "22.3"
# - "22.5"
# - "22.7"
# - "22.9"
# - "22.11"
# - "23.1"
# - "23.3"
# - "23.5"
# - "23.7"
# - "23.9"
# - "23.11"
# - "24.1"
# - "24.3"
- "24.7"
steps:
- uses: actions/checkout@v4
- name: Free some disk space
run: sudo rm -rf /usr/local/lib/android /usr/local/.ghcup/ghc
- name: Install NVidia HPC SDK
run: |
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y
sudo apt-get install -y nvhpc-$(echo "${{ matrix.version }}" | tr '.' '-')
- name: Compile
env:
CC: /opt/nvidia/hpc_sdk/Linux_x86_64/"${{ matrix.version }}"/compilers/bin/nvc
CXX: /opt/nvidia/hpc_sdk/Linux_x86_64/"${{ matrix.version }}"/compilers/bin/nvc++
working-directory: test
run: make
# nvhpc:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# version:
# # For available versions, see https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64/Packages
# - "20.11"
# # - "21.1" ## BROKEN. File size mismatch.
# # - "21.2"
# # - "21.3"
# # - "21.5"
# # - "21.7"
# # - "21.9"
# # - "21.11"
# # - "22.1"
# # - "22.2"
# # - "22.3"
# # - "22.5"
# # - "22.7"
# # - "22.9"
# # - "22.11"
# # - "23.1"
# # - "23.3"
# # - "23.5"
# # - "23.7"
# # - "23.9"
# # - "23.11"
# # - "24.1"
# # - "24.3"
# - "24.7"
# steps:
# - uses: actions/checkout@v4
# - name: Free some disk space
# run: sudo rm -rf /usr/local/lib/android /usr/local/.ghcup/ghc
# - name: Install NVidia HPC SDK
# run: |
# curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
# echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
# sudo apt-get update -y
# sudo apt-get install -y nvhpc-$(echo "${{ matrix.version }}" | tr '.' '-')
# - name: Compile
# env:
# CC: /opt/nvidia/hpc_sdk/Linux_x86_64/"${{ matrix.version }}"/compilers/bin/nvc
# CXX: /opt/nvidia/hpc_sdk/Linux_x86_64/"${{ matrix.version }}"/compilers/bin/nvc++
# working-directory: test
# run: make

pelles-c:
runs-on: windows-latest
# pelles-c:
# runs-on: windows-latest
# strategy:
# matrix:
# version:
# # https://community.chocolatey.org/packages/pelles-c#versionhistory
# - "12.0.2"
# - "11.0.2"
# - "10.0.6"
# - "9.00.0.0"
# # - "8.00.0.0" ## Installation times out.
# steps:
# - uses: actions/checkout@v2
# - name: Install Pelles-C
# uses: crazy-max/ghaction-chocolatey@v3
# with:
# args: install pelles-c --version "${{ matrix.version }}" --no-progress
# - name: Compile
# env:
# CC: 'C:\Program Files\PellesC\bin\pocc.exe'
# LD: 'C:\Program Files\PellesC\bin\polink.exe'
# CFLAGS: '/IC:\Progra~1\PellesC\Include'
# LDFLAGS: '/LIBPATH:C:\Progra~1\PellesC\lib /LIBPATH:C:\Progra~1\PellesC\Lib\Win64'
# working-directory: test
# run: make -f Makefile.pelles

ti-arm:
runs-on: ubuntu-latest
strategy:
matrix:
version:
# https://community.chocolatey.org/packages/pelles-c#versionhistory
- "12.0.2"
- "11.0.2"
- "10.0.6"
- "9.00.0.0"
# - "8.00.0.0" ## Installation times out.
include:
- tool: ARM
version: 20.2.7.LTS
steps:
- uses: actions/checkout@v2
- name: Install Pelles-C
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install pelles-c --version "${{ matrix.version }}" --no-progress
- name: Compile
env:
CC: 'C:\Program Files\PellesC\bin\pocc.exe'
LD: 'C:\Program Files\PellesC\bin\polink.exe'
CFLAGS: '/IC:\Progra~1\PellesC\Include'
LDFLAGS: '/LIBPATH:C:\Progra~1\PellesC\lib /LIBPATH:C:\Progra~1\PellesC\Lib\Win64'
working-directory: test
run: make -f Makefile.pelles
- name: Install Compiler
run: |
curl -s -o installer.bin "$(curl -s "https://www.ti.com/tool/download/${{ matrix.tool }}-CGT/${{ matrix.version }}" | grep -oP 'https://[a-zA-Z0-9\._\-/]+\.bin')"
chmod u+x installer.bin
./installer.bin --mode unattended --unattendedmodeui none --prefix ti-compiler
ls -ls ti-compiler

0 comments on commit 02471d5

Please sign in to comment.