Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions .github/workflows/cuda_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,35 @@ jobs:
sudo apt-get update
sudo apt-get install -y build-essential wget tar

#==========================================================================
# CUDA 13.1 Install
#==========================================================================
# ===============================
# Install CUDA 13.1
# ===============================
- name: Install CUDA
if: steps.cuda-cache.outputs.cache-hit != 'true'
run: |
# Download CUDA repository pin file
wget --no-check-certificate https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600

# Download CUDA local installer
wget --no-check-certificate https://developer.download.nvidia.com/compute/cuda/13.1.0/local_installers/cuda-repo-ubuntu2204-13-1-local_13.1.0-590.44.01-1_amd64.deb

# Install CUDA repository
sudo dpkg -i cuda-repo-ubuntu2204-13-1-local_13.1.0-590.44.01-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-13-1-local/cuda-*-keyring.gpg /usr/share/keyrings/

# Update and install CUDA toolkit
sudo apt-get update
sudo apt-get -y install cuda-toolkit-13-1

# CLEAN UP CUDA FILES
echo "🧹 Cleaning up CUDA installation files..."
rm -f cuda-repo-ubuntu2204-13-1-local_13.1.0-590.44.01-1_amd64.deb
sudo rm -rf /var/cuda-repo-ubuntu2204-13-1-local
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
# Copy CUDA into workspace folder for cache/artifact
mkdir -p cuda-install
cp -r /usr/local/cuda-13.1/* cuda-install/

echo "✅ CUDA 13.1 installed successfully"

# ===============================
# Upload artifact
# ===============================
- name: Upload CUDA artifact
if: steps.boost-cache.outputs.cache-hit != 'true'
if: steps.cuda-cache.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v4
with:
name: cuda-13.1.0
name: cuda-${{ runner.os }}-13.1.0
path: cuda-install
65 changes: 65 additions & 0 deletions .github/workflows/openssl_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Linux OpenSSL

on:
workflow_dispatch:

jobs:
build-linux:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

# ===============================
# Restore OpenSSL cache
# ===============================
- name: Restore OpenSSL cache
id: openssl-cache
uses: actions/cache@v4
with:
path: openssl-install
key: openssl-${{ runner.os }}-1.1.1w

# ===============================
# Install build dependencies
# ===============================
- name: Install build dependencies
if: steps.openssl-cache.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y build-essential perl wget

# ===============================
# Build OpenSSL 1.1.1w
# ===============================
- name: Build OpenSSL 1.1.1w
if: steps.openssl-cache.outputs.cache-hit != 'true'
run: |
git clone https://github.com/openssl/openssl.git
cd openssl

git fetch --all
git checkout tags/OpenSSL_1_1_1w

./Configure linux-x86_64 \
--prefix=${{ github.workspace }}/openssl-install \
--openssldir=${{ github.workspace }}/openssl-install

make -j$(nproc)
make install_sw

cd ..
rm -rf openssl

echo "✅ OpenSSL 1.1.1w built successfully"

# ===============================
# Upload artifact
# ===============================
- name: Upload OpenSSL artifact
if: steps.openssl-cache.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v4
with:
name: openssl-${{ runner.os }}-1.1.1w
path: openssl-install