-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f26218
commit ce0260d
Showing
8 changed files
with
111 additions
and
78 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
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,40 @@ | ||
// This file should be kept in sync with "../devcontainer.json". | ||
// This file is used for running benchmark tests in CI. The other file is used for local development. | ||
// The only difference is using the "privileged" property to allow the container to run as root. | ||
{ | ||
"name": "slang-devcontainer", | ||
"runArgs": [], | ||
"build": { | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
"privileged": true, | ||
"postAttachCommand": "/bin/bash scripts/bin/infra setup", | ||
"portsAttributes": { | ||
// _MKDOCS_WATCH_PORT_ | keep in sync with the port number defined in "$REPO_ROOT/crates/infra/cli/src/toolchains/mkdocs/mod.rs" | ||
"5353": { | ||
"label": "mkdocs", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
// Keep extensions list in-sync with "$REPO_ROOT/.vscode/extensions.json" | ||
"extensions": [ | ||
// Language Support | ||
"igochkov.vscode-ebnf", | ||
"NomicFoundation.hardhat-solidity", | ||
"redhat.vscode-yaml", | ||
"rust-lang.rust-analyzer", | ||
"samuelcolvin.jinjahtml", | ||
"tamasfe.even-better-toml", | ||
"yzhang.markdown-all-in-one", | ||
// Formatting/Linting | ||
"DavidAnson.vscode-markdownlint", | ||
"esbenp.prettier-vscode", | ||
"Gruntfuggly.triggertaskonsave", | ||
"streetsidesoftware.code-spell-checker", | ||
"timonwong.shellcheck" | ||
] | ||
} | ||
} | ||
} |
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,35 @@ | ||
name: "devcontainer/run" | ||
|
||
inputs: | ||
runCmd: | ||
type: "string" | ||
required: true | ||
|
||
env: | ||
type: "string" | ||
default: "" | ||
|
||
privileged: | ||
type: "boolean" | ||
default: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Run in devcontainer" | ||
uses: "devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8" | ||
if: "${{ !inputs.privileged }}" | ||
with: | ||
configFile: ".devcontainer/devcontainer.json" | ||
env: "${{ inputs.env }}" | ||
push: "never" | ||
runCmd: "${{ inputs.runCmd }}" | ||
|
||
- name: "Run in devcontainer (privileged)" | ||
uses: "devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8" | ||
if: "${{ inputs.privileged }}" | ||
with: | ||
configFile: ".devcontainer/privileged/devcontainer.json" | ||
env: "${{ inputs.env }}" | ||
push: "never" | ||
runCmd: "${{ inputs.runCmd }}" |
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
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