mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Build a CodeQL extractor pack
This commit is contained in:
50
.github/workflows/build.yml
vendored
50
.github/workflows/build.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, osx-latest, windows-latest ]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@@ -24,5 +24,53 @@ jobs:
|
||||
submodules: true
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Generate dbscheme
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
run: target/debug/generator
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||
with:
|
||||
name: ruby.dbscheme
|
||||
path: ruby.dbscheme
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: extractor-${{ matrix.os }}
|
||||
path: |
|
||||
target/debug/ruby-extractor
|
||||
target/debug/ruby-extractor.exe
|
||||
retention-days: 1
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
package:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ruby.dbscheme
|
||||
path: codeql-ruby/ruby
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: extractor-ubuntu-latest
|
||||
path: linux64
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: extractor-windows-latest
|
||||
path: win64
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: extractor-macos-latest
|
||||
path: osx64
|
||||
- run: |
|
||||
mkdir -p codeql-ruby/ruby
|
||||
cp -r codeql-extractor.yml tools codeql-ruby/ruby/
|
||||
mkdir -p codeql-ruby/ruby/tools/{linux64,osx64,win64}
|
||||
cp linux64/ruby-extractor codeql-ruby/ruby/tools/linux64/extractor
|
||||
cp osx64/ruby-extractor codeql-ruby/ruby/tools/osx64/extractor
|
||||
cp win64/ruby-extractor.exe codeql-ruby/ruby/tools/win64/extractor.exe
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: codeql-ruby
|
||||
path: codeql-ruby
|
||||
retention-days: 1
|
||||
|
||||
Reference in New Issue
Block a user