From 9b411c168bcec1d3983714e1677014ef514468c7 Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Fri, 13 Dec 2024 11:56:17 +0800 Subject: [PATCH] tweak ci --- .github/workflows/jobs.yml | 12 ++++++++- repos.txt | 51 +++++++++++++++++++------------------- src/util.rs | 4 +-- 3 files changed, 39 insertions(+), 28 deletions(-) diff --git a/.github/workflows/jobs.yml b/.github/workflows/jobs.yml index ad0c1a4..4b39d51 100644 --- a/.github/workflows/jobs.yml +++ b/.github/workflows/jobs.yml @@ -76,7 +76,8 @@ jobs: if-no-files-found: error - - name: Commit + - name: Commit(Unix) + if: ${{ matrix.os != 'windows-latest' }} run: | git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" @@ -84,6 +85,15 @@ jobs: git add ./repos.txt git commit -m "Update data for ${{ matrix.os }} at $(date '+%Y-%m-%d %H:%M:%S')" || echo "No changes to commit" + - name: Commit(Windows) + if: ${{ matrix.os == 'windows-latest' }} + run: | + git config --local user.name "github-actions[bot]" + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git add ./webapp/public/* + git commit -m "Update data for ${{ matrix.os }} at $(date '+%Y-%m-%d %H:%M:%S')" || echo "No changes to commit" + git stash + - name: Push changes run: git fetch && git pull --rebase && git push diff --git a/repos.txt b/repos.txt index f9c9ef7..c522f1f 100644 --- a/repos.txt +++ b/repos.txt @@ -52,31 +52,31 @@ gmlewis/b2 0.28.0 gmlewis/base64 0.12.0 gmlewis/crc32 0.7.0 gmlewis/flate 0.32.0 -gmlewis/fonts 0.3.0 -gmlewis/fonts-a 0.3.0 -gmlewis/fonts-b 0.3.0 -gmlewis/fonts-c 0.3.0 -gmlewis/fonts-d 0.3.0 -gmlewis/fonts-e 0.3.0 -gmlewis/fonts-f 0.3.0 -gmlewis/fonts-g 0.3.0 -gmlewis/fonts-h 0.3.0 -gmlewis/fonts-i 0.3.0 -gmlewis/fonts-j 0.3.0 -gmlewis/fonts-k 0.3.0 -gmlewis/fonts-l 0.3.0 -gmlewis/fonts-m 0.3.0 -gmlewis/fonts-o 0.3.0 -gmlewis/fonts-p 0.3.0 -gmlewis/fonts-q 0.3.0 -gmlewis/fonts-r 0.3.0 -gmlewis/fonts-s 0.3.0 -gmlewis/fonts-t 0.3.0 -gmlewis/fonts-u 0.3.0 -gmlewis/fonts-v 0.3.0 -gmlewis/fonts-w 0.3.0 -gmlewis/fonts-y 0.3.0 -gmlewis/fonts-z 0.3.0 +gmlewis/fonts 0.6.0 +gmlewis/fonts-a 0.6.0 +gmlewis/fonts-b 0.6.0 +gmlewis/fonts-c 0.6.0 +gmlewis/fonts-d 0.6.0 +gmlewis/fonts-e 0.6.0 +gmlewis/fonts-f 0.6.0 +gmlewis/fonts-g 0.6.0 +gmlewis/fonts-h 0.6.0 +gmlewis/fonts-i 0.6.0 +gmlewis/fonts-j 0.6.0 +gmlewis/fonts-k 0.6.0 +gmlewis/fonts-l 0.6.0 +gmlewis/fonts-m 0.6.0 +gmlewis/fonts-o 0.6.0 +gmlewis/fonts-p 0.6.0 +gmlewis/fonts-q 0.6.0 +gmlewis/fonts-r 0.6.0 +gmlewis/fonts-s 0.6.0 +gmlewis/fonts-t 0.6.0 +gmlewis/fonts-u 0.6.0 +gmlewis/fonts-v 0.6.0 +gmlewis/fonts-w 0.6.0 +gmlewis/fonts-y 0.6.0 +gmlewis/fonts-z 0.6.0 gmlewis/gzip 0.27.0 gmlewis/hash 0.15.0 gmlewis/image 0.13.0 @@ -143,6 +143,7 @@ tonyfettes/narray 0.1.0 tonyfettes/torch 0.2.5 wangziling/hello 0.0.1 wstreet/moontest 0.1.0 +xunyoyo/Permutation 0.1.1 xunyoyo/linalg 0.2.5 xunyoyo/permutation 0.1.3 yamajik/dapr 0.1.11 diff --git a/src/util.rs b/src/util.rs index 108a3f7..5c95d10 100644 --- a/src/util.rs +++ b/src/util.rs @@ -126,12 +126,12 @@ fn install_unix_release(args: &[&str]) -> Result<(), MoonOpsError> { } fn install_windows_release(is_bleeding: bool) -> Result<(), MoonOpsError> { - let cmd_str = "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm https://cli.moonbitlang.cn/install/powershell.ps1 | iex"; + let cmd_str = "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm https://cli.moonbitlang.com/install/powershell.ps1 | iex"; let mut cmd = std::process::Command::new("powershell"); cmd.args(["-Command", cmd_str]); if is_bleeding { - cmd.env("MOONBIT_INSTALL_VERSION", "nightly"); + cmd.env("MOONBIT_INSTALL_VERSION", "bleeding"); } let output = cmd.output().map_err(|e| MoonOpsError {