Skip to content

Commit

Permalink
tweak ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Dec 13, 2024
1 parent 10ad545 commit 9b411c1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 28 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,24 @@ 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"
git add ./webapp/public/*
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

Expand Down
51 changes: 26 additions & 25 deletions repos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b411c1

Please sign in to comment.