Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to JavaScript Action #70

Merged
merged 7 commits into from
Nov 21, 2023
Merged

Convert to JavaScript Action #70

merged 7 commits into from
Nov 21, 2023

Conversation

threeal
Copy link
Owner

@threeal threeal commented Nov 20, 2023

This pull request consolidates changes from all previous pull requests before merging into the main branch. It encompasses modifications for converting this Action to a JavaScript Action. The pull request closes #28.

* build: initialize JavaScript action project

* chore(dependabot): check for npm package updates

* style: ignore `main` dir and `README.md` from being formatted

* ci: add Build workflow that contains Build Package job

* ci: add Test Package job in the Test workflow

* test: add an empty `main.test.ts` test

* chore: adjust Git attributes for `main/index.mjs` file

* docs(readme): add a build status badge
* feat(action): modify to run `main/index.mjs` on Node 20

* feat: add configure cmake step

* feat: output build directory

* feat: get `source-dir` and `build-dir` inputs
* feat: add CMake build step

* feat: only run CMake build step if `run-build` input is true

* feat: pass `build-args` input to the CMake build command

* fix: split lines from `getMultilineInput` with a whitespace
* feat: run CTest if `run-test` is true

* feat: run CMake build if `run-test` set to true
* feat: parse and pass `generator` input

* feat: parse and pass `c-compiler` and `cxx-compiler` inputs

* feat: parse and pass `c-flags` and `cxx-flags` inputs

* feat: parse and pass `options` input

* feat: parse and pass `args` input
* ci: remove `specified-shell` job in the Test workflow

* feat: remove `shell` action input
* feat: install Ninja if generator is Ninja

* feat: only install ninja if it was not installed
@threeal threeal marked this pull request as ready for review November 21, 2023 13:46
@threeal threeal merged commit 434fbed into main Nov 21, 2023
15 checks passed
@threeal threeal deleted the js-action branch November 21, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert to JavaScript Action
1 participant