Skip to content

Update CI build

Update CI build #70

Workflow file for this run

name: Artifacts (Package)
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Prepare environment (none-tag)
if: github.ref_type != 'tag'
run: |
export VERSION="${GITHUB_REF##*/}-${GITHUB_SHA##*/}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "ARTIFACT=build/nvidia-libs-${VERSION}" >> $GITHUB_ENV
- name: Prepare environment (tag)
if: github.ref_type == 'tag'
run: |
export VERSION=$(git describe --always --tags --dirty=+)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "ARTIFACT=build/nvidia-libs-${VERSION}" >> $GITHUB_ENV
- name: Setup problem matcher
uses: Joshua-Ashton/gcc-problem-matcher@v3
- name: Build
uses: Joshua-Ashton/arch-mingw-github-action@9cdb815264bce7a6346927521b176f578982679d
with:
command: |
./package-release.sh "${{ env.VERSION }}" build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: nvidia-libs-${{ env.VERSION }}
path: ${{ env.ARTIFACT }}
if-no-files-found: error