-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Workflow] Generate Ruby Types from Workflow (#5)
* [workflows] attempting run on workflow * [workflows] Adding ls * [workflows] add branch to test * [workflows] list builtin_types, cahnge default value for frontends to constant val * [workflows] add sha512 to workflow * [ruby] Fixed pathing issue on downloader * [workflows] add release step to workflow * [workflows] add files for release step * [workflows] fix spelling * [workflows] added output directory option for type-stub generator * [workflows] remove branch from workflow * move log to inside if * scalafmt * [workflows] rename moved files
- Loading branch information
1 parent
ea3bd58
commit decd75d
Showing
5 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: release | ||
on: | ||
push: | ||
branches: [master, main] | ||
tags: ["*"] | ||
paths-ignore: ['**.md'] | ||
workflow_dispatch: #allows manual trigger | ||
|
||
concurrency: production | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' | ||
- name: Get next release version (dry run) | ||
id: taggerDryRun | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
DRY_RUN: true | ||
- name: echo new tag | ||
run: | | ||
export NEXT_VERSION=${{ steps.taggerDryRun.outputs.new_tag }} | ||
echo "The next tag version will be: $NEXT_VERSION" | ||
- name: echo tag | ||
run: | | ||
echo "The current tag is: ${{ steps.taggerDryRun.outputs.tag }}" | ||
- name: Compile | ||
run: sbt clean stage | ||
- name: Generate Ruby Types | ||
run: ./standalone --withLanguageFrontend RUBYSRC | ||
- name: Checksum | ||
run: sha512sum builtin_types/ruby_builtin_types.zip > builtin_types/ruby_builtin_types.zip.sha512 | ||
- name: Rename | ||
run: | | ||
mv builtin_types/ruby_builtin_types.zip rubysrc_builtin_types.zip | ||
mv builtin_types/ruby_builtin_types.zip.sha512 rubysrc_builtin_types.zip.sha512 | ||
- name: Show SHA512 | ||
run: cat rubysrc_builtin_types.zip.sha512 | ||
- name: Set next release version | ||
id: taggerFinal | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.taggerDryRun.outputs.new_tag }} | ||
files: | | ||
rubysrc_builtin_types.zip | ||
rubysrc_builtin_types.zip.sha512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ target/ | |
/joern-inst | ||
/workspace | ||
src/main/resources/ | ||
builtin_types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters