Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix windows test. #5081

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading