Paolo Tranquilli
d8db0e43da
Ruby: update new cargo target directory in make and actions
2024-09-11 11:01:10 +02:00
Dave Bartolomeo
36c71a9592
Include hidden files when uploading Ruby pack
2024-09-03 11:47:02 -04:00
Tom Hvitved
be66ea2178
Ruby: Trigger ruby-build.yml on changes to shared extractor
2024-06-14 11:09:03 +02:00
Cornelius Riemenschneider
b82ffd40e7
Fix windows CI build.
...
As we're now checking out the `codeql` repo in a sub-path,
we need to enable long paths on Windows.
2024-02-26 11:21:23 +00:00
Cornelius Riemenschneider
fd85c44129
Ruby: Start building the language pack using bazel.
...
This PR introduces a bazel and `rules_rust`-based build system
for the ruby extractor and language pack.
This replacese the existing, `cargo` and `cross`-based build system.
For local development, nothing changes, and the existing `cargo`-based
build still keeps working as-is.
We no longer need to use `cross` to compile our Linux binaries,
as we now can link against our hermetic C++ toolchain, which ships
with an old enough glibc, so that we don't run into symbol version issues
when deploying the binaries to older systems.
Besides the one change in dependency (explained in detail in `Cargo.toml`
and in https://github.com/github/codeql/pull/15595 ), nothing ought to
change in how we build the extractor.
2024-02-26 11:21:22 +00:00
Josh Soref
b58c856756
Declare permissions
...
Repositories can be configured with Default access (restricted)
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
Best practice says that workflows should declare the minimal permissions they require.
Without declaring permissions, paranoid forks fail miserably.
2024-02-14 14:31:45 -05:00
Josh Soref
6779c667f6
Limit xl runner jobs to github org
2024-02-12 05:00:49 -05:00
Cornelius Riemenschneider
79d210f7bd
Update .github/workflows/ruby-build.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2023-09-06 12:19:46 +02:00
dependabot[bot]
03771ffad2
Bump actions/checkout from 2 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-05 12:17:54 +02:00
Arthur Baars
6d7e95a142
QL/Ruby: included shared extractor code in cache key
2023-05-22 19:28:59 +02:00
Harry Maclean
ab4eba11ec
Ruby: Rename extractor to codeql-extractor-ruby
2023-04-19 06:27:27 +00:00
Harry Maclean
d942b54a9d
Ruby: Update scripts for merged extractor
2023-04-07 15:49:17 +08:00
Harry Maclean
2b6cbc836d
Ruby: Remove outdated cache path
2023-03-25 10:39:41 +13:00
Harry Maclean
32468b68de
Ruby: Use correct binary for linux build
2023-03-24 15:04:10 +13:00
Harry Maclean
45797b3de5
Ruby: bump cross to 0.2.5
...
This include support for mounting external path dependencies as volumes.
2023-03-23 12:20:15 +13:00
Arthur Baars
bed5eeb372
Apply suggestions from code review
2023-03-22 12:30:15 +01:00
Harry Maclean
6cb1348988
Ruby: Try different workaround for Actions bug
2023-03-22 15:02:36 +13:00
Harry Maclean
5332344e5d
Work around github actions bug
2023-03-17 12:13:30 +13:00
Harry Maclean
2abb03304d
Install required dependencies for gh in centos 7
2023-03-17 11:56:04 +13:00
Harry Maclean
c447e125bb
Ruby: Install gh cli in centos7 test
2023-03-17 10:59:49 +13:00
Harry Maclean
d4020ad305
Ruby: Run extractor test on centos 7
2023-03-17 10:38:45 +13:00
Harry Maclean
7b81fe3109
Ruby: fix conditional use of cross in build
2023-03-16 12:11:12 +13:00
Harry Maclean
e7ead76fe9
Ruby: Build extractor via cargo-cross on linux
2023-03-16 12:04:33 +13:00
Harry Maclean
fd43ba0827
Update .github/workflows/ruby-build.yml
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2023-03-15 09:28:53 +13:00
Harry Maclean
eefc4866ea
Ruby: build query pack in temporary directory
...
This ensures we don't clobber any existing directories in the repo.
2023-03-15 08:20:23 +13:00
Harry Maclean
7ee7a0df34
Ruby: fix prefix in create-extractor-pack scripts
2023-03-14 18:12:01 +13:00
Harry Maclean
f19e48d473
Ruby: Update binary prefixes in build
2023-03-14 12:53:37 +13:00
Harry Maclean
4de31e8577
Ruby: Ensure right directory for extractor build
2023-03-14 12:40:37 +13:00
Harry Maclean
0e5dcddb98
Ruby: Fix cargo fmt step in build
2023-03-14 12:17:04 +13:00
Harry Maclean
5c59692b3a
Ruby: Update workflow for new extractor location
2023-03-14 12:10:56 +13:00
erik-krogh
9e153cfb0d
change the Ruby-build test such that Windows fails
2023-01-16 15:37:35 +01:00
Arthur Baars
e29e077a03
Ruby/QL4QL: include OS version in cache keys
2023-01-12 15:47:10 +01:00
Aditya Sharad
d2ee8c08c0
Ruby: Add shared tutorial pack to testing bundle
2022-12-20 10:56:05 -08:00
erik-krogh
c9a600d496
Ruby: cache the compiled extractor, because that's way smaller than the cargo cache
2022-11-24 10:55:38 +01:00
erik-krogh
29055f7709
delete packs
2022-11-22 00:12:33 +01:00
erik-krogh
76ceb49841
re-introduce the paths requirements in the ruby workflows
2022-11-21 17:55:57 +01:00
Erik Krogh Kristensen
53ba22ab5c
simplify pack creation
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2022-11-21 17:55:57 +01:00
erik-krogh
3b7ce0680d
Ruby: build queries on an XL worker, and use all the threads
2022-11-21 17:55:57 +01:00
erik-krogh
999e8ed0d0
Ruby: remove the path on branch pushes, for caching
2022-11-21 17:55:57 +01:00
erik-krogh
b1db390200
Ruby: use compilation cache in the ruby-build workflow
2022-11-21 17:55:57 +01:00
erik-krogh
f2d980b132
update ruby build to include the regex pack (depend on #10668 )
2022-11-07 14:36:53 +01:00
Arthur Baars
8b39059d3a
Update .github/workflows/ruby-build.yml
2022-11-01 10:49:12 +01:00
Arthur Baars
ae7e6ef701
Ruby: update dependencies
2022-10-04 13:44:22 +02:00
Tom Hvitved
007ab2b7ce
Ruby: Do not expose AST layer through ruby.qll
2022-09-13 19:59:56 +02:00
Tom Hvitved
6b728acd9e
Use specific codeql/shared-ssa pack for the SSA library
2022-09-01 21:23:33 +02:00
Tom Hvitved
c6807f5c05
Update two Actions workflows
2022-09-01 09:36:50 +02:00
Arthur Baars
64704057cb
CI: fix path triggers
2022-08-02 16:33:21 +02:00
Arthur Baars
4d35d8da48
CI: fix Ruby build job
2022-08-01 16:15:04 +02:00
Arthur Baars
29381dc264
Use fetch-codeql in more places
2022-08-01 15:43:22 +02:00
Henry Mercer
99e6d2a925
Run relevant tests when codeql-workspace.yml is updated
2022-05-30 15:54:52 +01:00