Skip to content

Commit

Permalink
CI: fix windows test. (#5081)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 authored Sep 2, 2024
1 parent 6705817 commit d9fbea1
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/wintest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,13 @@ jobs:
.\redis-service.exe install
net start redisredis
- name: Start Minio
run: |
copy winsw.exe minio-service.exe
mkdir "C:\tmp"
echo "<service>" >> minio-service.xml
echo "<id>MinIO</id>" >> minio-service.xml
echo "<name>MinIO</name>" >> minio-service.xml
echo "<description>MinIO</description>" >> minio-service.xml
echo "<executable>C:\Users\$env:USERNAME\scoop\shims\minio.exe</executable>" >> minio-service.xml
echo "<arguments>server C:\tmp</arguments>" >> minio-service.xml
echo "<logmode>rotate</logmode>" >> minio-service.xml
echo "</service>" >> minio-service.xml
.\minio-service.exe install
net start MinIO
- name: Build Juicefs
run: |
go build -ldflags="-s -w" -o juicefs.exe .
- name: Juicefs Format
run: |
./juicefs.exe format --storage minio --bucket http://127.0.0.1:9000/pics --access-key minioadmin --secret-key minioadmin redis://127.0.0.1:6379/1 pics
./juicefs.exe format redis://127.0.0.1:6379/1 myjfs
- name: Juicefs Mount
run: |
Expand All @@ -138,7 +123,7 @@ jobs:
dir "Z:\dir"
echo "hello" > "Z:\dir\hello.txt"
dir "Z:\dir\hello.txt"
# type "Z:\dir\hello.txt"
type "Z:\dir\hello.txt"
#there is go-fuse compile error with unit test
#- name: Unit Test
Expand Down

0 comments on commit d9fbea1

Please sign in to comment.