From f4d59cac3b9c852ad01cf7d7b996f2813105f417 Mon Sep 17 00:00:00 2001 From: Jimver Date: Sun, 1 Jun 2025 14:21:11 +0200 Subject: [PATCH] Update CI --- .github/workflows/CI.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2398591..3a8dfa4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,6 +12,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +permissions: + contents: read + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "CI" @@ -44,23 +47,21 @@ jobs: node-version-file: .node-version cache: npm - - name: Install npm dependencies + - name: Install Dependencies + id: npm-ci run: npm ci - - name: Build - run: npm run build - - - name: Format check - run: npm run format-check + - name: Check Format + id: npm-format-check + run: npm run format:check - name: Lint + id: npm-lint run: npm run lint - - name: Package - run: npm run package - - name: Test - run: npm run test + id: npm-ci-test + run: npm run ci-test - name: Run the action on this runner with method ${{matrix.method}} uses: ./ @@ -81,12 +82,19 @@ jobs: - name: Run the action on this runner with nvcc subpackage only (Windows) if: runner.os == 'Windows' + id: test-action uses: ./ with: method: ${{matrix.method}} sub-packages: '["nvcc"]' log-file-suffix: 'nvcc-${{matrix.method}}-${{matrix.os}}' + - name: Print output cuda version + run: echo "${{ steps.test-action.outputs.cuda }}" + + - name: Print output CUDA_PATH + run: echo "${{ steps.test-action.outputs.CUDA_PATH }}" + - name: Test if nvcc is available run: nvcc -V