-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve rust version update issues with self hosted runner
- Loading branch information
1 parent
2833ff7
commit 0531608
Showing
3 changed files
with
17 additions
and
12 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 |
---|---|---|
|
@@ -35,25 +35,25 @@ jobs: | |
with: | ||
node-version: "lts/*" | ||
|
||
- name: Install Ruby and related tools | ||
run: ./scripts/benchmarks/setup_dependencies.sh | ||
- name: Install Ruby and other dev tools | ||
run: ./scripts/benchmarks/setup_dev_tools.sh | ||
|
||
- name: Install cargo tools | ||
run: | | ||
cargo install nj-cli wasm-pack --locked | ||
cargo install nj-cli wasm-pack | ||
npm install -g tslib | ||
- name: Run Jasmine performance tests | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
export PATH="/root/.cargo/bin:$PATH" | ||
source ~/.bashrc | ||
if [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" -eq 0 ]]; then | ||
echo "Running manually" | ||
ruby scripts/benchmarks/process.rb 1 | ||
rustc --version | ||
if [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" -le 10 ]]; then | ||
echo "Running manually with a PR ID of 10 or less." | ||
ruby scripts/benchmarks/process.rb ${{ github.event.inputs.pr_id }} | ||
elif [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" =~ ^[0-9]+$ ]]; then | ||
echo "Running manually with a valid numeric PR ID greater than 10." | ||
ruby scripts/benchmarks/process.rb PR~${{ github.event.inputs.pr_id }} | ||
elif [[ "${{ github.event_name }}" != 'workflow_dispatch' ]]; then | ||
echo "Running on a non-workflow_dispatch event." | ||
ruby scripts/benchmarks/process.rb 1 | ||
fi | ||
|
@@ -78,7 +78,7 @@ jobs: | |
git config user.name "esrlabs" | ||
git config user.email "[email protected]" | ||
git remote set-url origin "https://esrlabs:${{secrets.DOCS_PUSH_TOKEN}}@github.com/esrlabs/chipmunk-docs" | ||
if [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" -ne 0 ]]; then | ||
if [[ "${{ github.event_name }}" == 'workflow_dispatch' && "${{ github.event.inputs.pr_id }}" -gt 10 ]]; then | ||
cp /chipmunk/chipmunk_performance_results/Benchmark_PR_${{ github.event.inputs.pr_id }}.json ./jekyll/benchmarks/data/pull_request/ | ||
git add ./jekyll/benchmarks/data/pull_request/Benchmark_PR_${{ github.event.inputs.pr_id }}.json | ||
git commit -m "Adding PR benchmark results for chipmunk PR #${{ github.event.inputs.pr_id }}" | ||
|
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