Skip to content

Commit

Permalink
test container privileged run
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik committed Jul 30, 2024
1 parent 2f26218 commit 4560715
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"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"
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,9 @@ jobs:
- name: "Restore Cache"
uses: "./.github/actions/cache/restore"

- name: "infra setup cargo"
uses: "./.devcontainer"
with:
entrypoint: "./scripts/bin/infra"
args: "setup cargo"

- name: "infra perf benchmark"
uses: "./.devcontainer"
uses: "devcontainers/[email protected]"
with:
entrypoint: "./scripts/bin/infra"
args: "perf benchmark"
env:
BENCHER_API_TOKEN: "${{ secrets.BENCHER_API_TOKEN }}"
runCmd: "./scripts/bin/infra perf benchmark"
env: |
BENCHER_API_TOKEN=${{ secrets.BENCHER_API_TOKEN }}

0 comments on commit 4560715

Please sign in to comment.