forked from primesearch/mfaktc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding suggestions by @tdulcet from PR primesearch#14
- Loading branch information
Showing
2 changed files
with
54 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,36 +11,41 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. | ||
fail-fast: true | ||
# When fail-fast set to true, if one job fails, all others within the same | ||
# matrix (i.e. Linux or Windows builds) will be aborted at the same time. | ||
fail-fast: false | ||
|
||
matrix: | ||
sys: | ||
# Specified version combination must exist as CUDA container image from NVidia: nvcr.io/nvidia/cuda:${{ matrix.sys.cuda_version }}-devel-${{ matrix.sys.ct_os }} | ||
# Available versions can be found here: https://catalog.ngc.nvidia.com/orgs/nvidia/containers/cuda/tags (note that only Ubuntus are supported by this action) | ||
- { cuda_version: '12.8.0', ct_os: 'ubuntu24.04' } | ||
- { cuda_version: '12.6.3', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.6.2', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.6.1', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.6.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.6.2', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.6.1', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.6.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.5.1', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.5.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.5.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.4.1', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.4.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.4.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.3.2', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.3.1', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.3.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.3.1', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.3.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.2.2', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.2.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.2.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.1.1', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.1.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.1.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.0.1', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '12.0.0', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '12.0.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '11.8.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '11.7.1', ct_os: 'ubuntu22.04' } | ||
# - { cuda_version: '11.7.0', ct_os: 'ubuntu22.04' } | ||
- { cuda_version: '11.6.2', ct_os: 'ubuntu20.04' } | ||
- { cuda_version: '11.6.1', ct_os: 'ubuntu20.04' } | ||
# - { cuda_version: '11.6.1', ct_os: 'ubuntu20.04' } | ||
# - { cuda_version: '11.6.0', ct_os: 'ubuntu20.04' } | ||
- { cuda_version: '11.5.2', ct_os: 'ubuntu20.04' } | ||
# - { cuda_version: '11.5.1', ct_os: 'ubuntu20.04' } | ||
# - { cuda_version: '11.5.0', ct_os: 'ubuntu20.04' } | ||
- { cuda_version: '11.4.3', ct_os: 'ubuntu20.04' } | ||
- { cuda_version: '11.3.1', ct_os: 'ubuntu20.04' } | ||
- { cuda_version: '11.2.2', ct_os: 'ubuntu20.04' } | ||
|
@@ -76,17 +81,16 @@ jobs: | |
id: packages | ||
env: | ||
SCRIPT: | | ||
apt update | ||
apt -y full-upgrade | ||
apt install -y build-essential curl git make python3 sudo unzip wget zip | ||
apt-get update | ||
apt-get -y full-upgrade | ||
apt-get install -y build-essential curl git make python3 sudo unzip wget zip | ||
run: docker exec build-container bash -c "$SCRIPT" | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Prepare sources and gather info | ||
id: prepare | ||
shell: bash | ||
env: | ||
SCRIPT: | | ||
cd /workspace | ||
|
@@ -122,8 +126,9 @@ jobs: | |
runs-on: ${{ matrix.sys.os }} | ||
|
||
strategy: | ||
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. | ||
fail-fast: true | ||
# When fail-fast set to true, if one job fails, all others within the same | ||
# matrix (i.e. Linux or Windows builds) will be aborted at the same time. | ||
fail-fast: false | ||
|
||
matrix: | ||
# Available version can be viewed at the Jimver/cuda-toolkit action sources: | ||
|
@@ -138,7 +143,7 @@ jobs: | |
- { cuda_version: '12.1.1', os: 'windows-2022' } | ||
- { cuda_version: '12.0.1', os: 'windows-2022' } | ||
- { cuda_version: '11.8.0', os: 'windows-2022' } | ||
- { cuda_version: '11.7.0', os: 'windows-2022' } | ||
- { cuda_version: '11.7.1', os: 'windows-2022' } | ||
- { cuda_version: '11.6.2', os: 'windows-2022' } | ||
- { cuda_version: '11.5.2', os: 'windows-2022' } | ||
- { cuda_version: '11.4.4', os: 'windows-2022' } | ||
|
@@ -223,16 +228,20 @@ jobs: | |
- name: Prepare list of release files & release notes | ||
id: makeinfo | ||
run: | | ||
echo "Binary releases (automated builds) below." > RELEASE_NOTES.txt | ||
echo "Compute Capability (CC) in the table means minimum and maximum versions supported." >> RELEASE_NOTES.txt | ||
echo "CC versions are listed without the dot (i.e. 90 means 9.0 compute capability)." >> RELEASE_NOTES.txt | ||
echo >> RELEASE_NOTES.txt | ||
echo "File | CUDA version | Compute Capability | Build OS | Compiler version | NVCC version" >> RELEASE_NOTES.txt | ||
echo "--- | --- | --- | --- | --- | ---" >> RELEASE_NOTES.txt | ||
cat mfaktc-${{ github.ref_name }}-*-cuda*/mfaktc-${{ github.ref_name }}-*-cuda*.txt | sort -Vr >> RELEASE_NOTES.txt | ||
echo 'RELEASE_FILES<<EOF' > $GITHUB_OUTPUT | ||
ls -1 mfaktc-${{ github.ref_name }}-*-cuda*/mfaktc-${{ github.ref_name }}-*-cuda*.zip | sort -Vr >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
{ | ||
echo "Binary releases (automated builds) below." | ||
echo "Compute Capability (CC) in the table means minimum and maximum versions supported." | ||
echo "CC versions are listed without the dot (i.e. 90 means 9.0 compute capability)." | ||
echo | ||
echo "File | CUDA version | Compute Capability | Build OS | Compiler version | NVCC version" | ||
echo "--- | --- | --- | --- | --- | ---" | ||
sort -Vr mfaktc-${{ github.ref_name }}-*-cuda*/mfaktc-${{ github.ref_name }}-*-cuda*.txt | ||
} > RELEASE_NOTES.txt | ||
{ | ||
echo 'RELEASE_FILES<<EOF' | ||
printf '%s\n' mfaktc-${{ github.ref_name }}-*-cuda*/mfaktc-${{ github.ref_name }}-*-cuda*.zip | sort -Vr | ||
echo 'EOF' | ||
} > $GITHUB_OUTPUT | ||
- name: Make and upload release | ||
uses: softprops/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters