Skip to content

Commit

Permalink
Merge pull request #513 from mutagen-io/v018-development
Browse files Browse the repository at this point in the history
ci: make Windows partition setup to mirrors with different names
  • Loading branch information
xenoscopic authored Oct 18, 2024
2 parents c05befe + 2098bf1 commit 3f54e45
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,18 @@ jobs:
shell: bash
- run: scripts/ci/setup_docker.sh
shell: bash
- run: diskpart /s scripts\ci\setup_partitions_windows.txt
- name: "Prepare Windows partition script"
run: |
# Populate the partition setup script with the repository path since
# diskpart doesn't support relative paths or environment variable
# substitution. While we could hardcode a path into the script, that
# breaks CI for mirrors that have a different repository name.
REPONAME="$(basename "$(pwd)")"
sed -e "s/REPONAME/D:\\\\a\\\\${REPONAME}\\\\${REPONAME}/g" \
scripts/ci/setup_partitions_windows_template.txt \
> setup_partitions_windows.txt
shell: bash
- run: diskpart /s setup_partitions_windows.txt
- run: scripts/ci/analyze.sh
shell: bash
- run: scripts/ci/test.sh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
create vdisk file=D:\a\mutagen\mutagen\fat32image.vhdx maximum=50 type=fixed
create vdisk file=REPONAME\fat32image.vhdx maximum=50 type=fixed
attach vdisk
create partition primary
format quick fs=fat32 label=FAT32ROOT
Expand Down

0 comments on commit 3f54e45

Please sign in to comment.