mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 02:31:20 +00:00
DONT MERGE
This commit is contained in:
parent
8c2b4ffd0b
commit
9584ce3043
9
configure/README.md
Normal file
9
configure/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Configure CMake Action
|
||||||
|
|
||||||
|
Configure [CMake](https://cmake.org/) projects on [GitHub Actions](https://github.com/features/actions).
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This project is licensed under the terms of the [MIT License](../LICENSE).
|
||||||
|
|
||||||
|
Copyright © 2023-2024 [Alfi Maulana](https://github.com/threeal/)
|
32
configure/action.yml
Normal file
32
configure/action.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Configure CMake Action
|
||||||
|
description: Configure CMake projects
|
||||||
|
author: Alfi Maulana
|
||||||
|
branding:
|
||||||
|
color: gray-dark
|
||||||
|
icon: terminal
|
||||||
|
inputs:
|
||||||
|
source-dir:
|
||||||
|
description: The source directory of the CMake project
|
||||||
|
build-dir:
|
||||||
|
description: The build directory of the CMake project
|
||||||
|
generator:
|
||||||
|
description: The build system generator for the CMake project
|
||||||
|
c-compiler:
|
||||||
|
description: The preferred executable for compiling C language files
|
||||||
|
cxx-compiler:
|
||||||
|
description: The preferred executable for compiling C++ language files
|
||||||
|
c-flags:
|
||||||
|
description: Additional flags to pass when compiling C language files
|
||||||
|
cxx-flags:
|
||||||
|
description: Additional flags to pass when compiling C++ language files
|
||||||
|
options:
|
||||||
|
description: Additional options to pass during the CMake configuration
|
||||||
|
args:
|
||||||
|
description: Additional arguments to pass during the CMake configuration
|
||||||
|
outputs:
|
||||||
|
build-dir:
|
||||||
|
description: The build directory of the CMake project
|
||||||
|
value: ${{ steps.process-inputs.outputs.build-dir }}
|
||||||
|
runs:
|
||||||
|
using: node20
|
||||||
|
main: dist/action.mjs
|
11
configure/eslint.config.js
Normal file
11
configure/eslint.config.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import eslint from "@eslint/js";
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
|
export default [
|
||||||
|
eslint.configs.recommended,
|
||||||
|
...tseslint.configs.recommended,
|
||||||
|
...tseslint.configs.stylistic,
|
||||||
|
{
|
||||||
|
ignores: [".*", "dist"],
|
||||||
|
},
|
||||||
|
];
|
20
configure/jest.config.json
Normal file
20
configure/jest.config.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"collectCoverage": true,
|
||||||
|
"coverageReporters": ["text"],
|
||||||
|
"coverageThreshold": {
|
||||||
|
"global": {
|
||||||
|
"branches": 100,
|
||||||
|
"functions": 100,
|
||||||
|
"lines": 100,
|
||||||
|
"statements": 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"moduleNameMapper": {
|
||||||
|
"^(\\.{1,2}/.*)\\.js$": "$1"
|
||||||
|
},
|
||||||
|
"preset": "ts-jest/presets/default-esm",
|
||||||
|
"transform": {
|
||||||
|
"^.+\\.ts$": ["ts-jest", { "useESM": true }]
|
||||||
|
},
|
||||||
|
"verbose": true
|
||||||
|
}
|
34
configure/package.json
Normal file
34
configure/package.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "cmake-action-configure",
|
||||||
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
|
"workspaces": [
|
||||||
|
"lib/*"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"build": "rollup -c",
|
||||||
|
"format": "prettier --write --cache . !dist !README.md",
|
||||||
|
"lint": "eslint",
|
||||||
|
"test": "jest"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"gha-utils": "^0.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/js": "^9.8.0",
|
||||||
|
"@jest/globals": "^29.7.0",
|
||||||
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||||
|
"@rollup/plugin-typescript": "^11.1.6",
|
||||||
|
"@types/jest": "^29.5.12",
|
||||||
|
"@types/node": "^22.1.0",
|
||||||
|
"eslint": "^9.8.0",
|
||||||
|
"jest": "^29.7.0",
|
||||||
|
"prettier": "^3.3.3",
|
||||||
|
"rollup": "^4.20.0",
|
||||||
|
"ts-jest": "^29.2.4",
|
||||||
|
"tslib": "^2.6.3",
|
||||||
|
"typescript": "^5.5.4",
|
||||||
|
"typescript-eslint": "^8.0.0"
|
||||||
|
},
|
||||||
|
"packageManager": "yarn@4.4.0"
|
||||||
|
}
|
11
configure/rollup.config.js
Normal file
11
configure/rollup.config.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||||
|
import typescript from "@rollup/plugin-typescript";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
input: "src/action.ts",
|
||||||
|
output: {
|
||||||
|
dir: "dist",
|
||||||
|
entryFileNames: "[name].mjs",
|
||||||
|
},
|
||||||
|
plugins: [nodeResolve(), typescript()],
|
||||||
|
};
|
13
configure/tsconfig.json
Normal file
13
configure/tsconfig.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["**/*.test.ts"],
|
||||||
|
"compilerOptions": {
|
||||||
|
"exactOptionalPropertyTypes": true,
|
||||||
|
"strict": true,
|
||||||
|
"module": "node16",
|
||||||
|
"moduleResolution": "node16",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"target": "es2022",
|
||||||
|
"skipLibCheck": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user