Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Dec 6, 2024
1 parent c9bc054 commit 2614e0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Pull latest
run: git fetch && git pull --rebase

- name: Check commit
run: git log -5

Expand All @@ -96,6 +99,9 @@ jobs:
run: |
pnpm run build
sed -i '' 's|="/assets|="/moon-build-dashboard/assets|g' ./dist/index.html
sed -i '' 's|"/linux/latest_data.jsonl.gz"|"/moon-build-dashboard/linux/latest_data.jsonl.gz"|g' ./dist/assets/*.js
sed -i '' 's|"/windows/latest_data.jsonl.gz"|"/moon-build-dashboard/windows/latest_data.jsonl.gz"|g' ./dist/assets/*.js
sed -i '' 's|"/mac/latest_data.jsonl.gz"|"/moon-build-dashboard/mac/latest_data.jsonl.gz"|g' ./dist/assets/*.js
working-directory: ./webapp

- name: Deploy to GitHub Pages
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ fn run_moon(
eprintln!(
"{}",
format!(
"moon {}, elapsed: {}ms",
"moon {}, elapsed: {}ms, {}",
args.join(" ").blue().bold(),
elapsed.as_millis()
elapsed.as_millis(),
if output.status.success() { "success" } else { "failed" }
)
.green()
.bold()
Expand Down

0 comments on commit 2614e0a

Please sign in to comment.