Skip to content

Commit

Permalink
Ruby reachables test
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 16, 2025
1 parent ac9771f commit 9d1b569
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/java-reachables-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
id: ruby34
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.4'
Expand All @@ -87,8 +82,6 @@ jobs:
echo "${GITHUB_WORKSPACE}/node_modules/.bin" >> "$GITHUB_PATH"
- name: Check pre-reqs
run: |
echo "PATH: ${PATH}"
rbastgen --help
mkdir -p repotests
mkdir -p rubyresults
- uses: actions/checkout@v4
Expand All @@ -102,18 +95,25 @@ jobs:
bundle install
env:
BUNDLE_PATH: vendor/bundle
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
id: ruby34
- name: generate sbom with reachables
run: |
cd repotests/campsite/api
echo "PATH: ${PATH}"
rbastgen --help
echo "ATOM_RUBY_HOME: ${ATOM_RUBY_HOME}"
echo "BUNDLE_PATH: ${BUNDLE_PATH}"
cd repotests/campsite/api
node $GITHUB_WORKSPACE/bin/cdxgen.js -p -t ruby --profile research -o bom.json .
ls -lh
cp bom.json *.slices.json $GITHUB_WORKSPACE/rubyresults
env:
CDXGEN_DEBUG_MODE: debug
ATOM_RUBY_HOME: ${{ steps.ruby34.outputs.ruby-prefix }}
BUNDLE_PATH: ${{ github.workspace/repotests/campsite/api/vendor/bundle }}
BUNDLE_PATH: vendor/bundle
- uses: actions/upload-artifact@v4
with:
name: rubyresults
Expand Down

0 comments on commit 9d1b569

Please sign in to comment.