Compare commits

...

3 Commits

Author SHA1 Message Date
Henry Mercer
4d84f99867 Add testing trigger 2024-09-03 14:06:26 +01:00
Henry Mercer
729b9cc0f5 Run ruby build using older nightly 2024-09-03 14:06:09 +01:00
Henry Mercer
386bea0aaa Update fetch-codeql Action to allow specifying a version 2024-09-03 14:05:21 +01:00
2 changed files with 11 additions and 24 deletions

View File

@@ -6,6 +6,9 @@ inputs:
description: 'The CodeQL channel to use'
required: false
default: 'nightly'
tag_name:
description: 'The tag name of the CodeQL release to use. Leave blank to use the latest release.'
required: false
runs:
using: composite
@@ -15,9 +18,13 @@ runs:
env:
GITHUB_TOKEN: ${{ github.token }}
CHANNEL: ${{ inputs.channel }}
VERSION: ${{ inputs.version }}
run: |
gh extension install github/gh-codeql
gh codeql set-channel "$CHANNEL"
if [[ -n "$VERSION" ]]; then
gh codeql set-version "$VERSION"
fi
gh codeql version
printf "CODEQL_FETCHED_CODEQL_PATH=" >> "${GITHUB_ENV}"
gh codeql version --format=json | jq -r .unpackedLocation >> "${GITHUB_ENV}"

View File

@@ -2,30 +2,6 @@ name: "Ruby: Build"
on:
push:
paths:
- "ruby/**"
- .github/workflows/ruby-build.yml
- .github/actions/fetch-codeql/action.yml
- codeql-workspace.yml
- "shared/tree-sitter-extractor/**"
branches:
- main
- "rc/*"
pull_request:
paths:
- "ruby/**"
- .github/workflows/ruby-build.yml
- .github/actions/fetch-codeql/action.yml
- codeql-workspace.yml
- "shared/tree-sitter-extractor/**"
branches:
- main
- "rc/*"
workflow_dispatch:
inputs:
tag:
description: "Version tag to create"
required: false
env:
CARGO_TERM_COLOR: always
@@ -116,6 +92,8 @@ jobs:
- uses: actions/checkout@v4
- name: Fetch CodeQL
uses: ./.github/actions/fetch-codeql
with:
version: codeql-bundle-20240902
- name: Cache compilation cache
id: query-cache
uses: ./.github/actions/cache-query-compilation
@@ -209,6 +187,8 @@ jobs:
- uses: actions/checkout@v4
- name: Fetch CodeQL
uses: ./.github/actions/fetch-codeql
with:
version: codeql-bundle-20240902
- name: Download Ruby bundle
uses: actions/download-artifact@v3