diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aef4e42..068122f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: volume: - /tmp - . + - relative-path - / asroot: - name: '' @@ -30,6 +31,9 @@ jobs: - run: sudo apt-get install -y libparted-dev libudev-dev - run: make all extra + - if: matrix.volume == 'relative-path' + run: mkdir relative-path + - if: matrix.volume == '/' run: sudo chmod a+w / @@ -52,6 +56,7 @@ jobs: volume: - /tmp - . + - relative-path # MacOS denies `sudo chmod a+w /` #- / asroot: @@ -68,6 +73,9 @@ jobs: - run: brew install argp-standalone - run: make + - if: matrix.volume == 'relative-path' + run: mkdir relative-path + - run: ./f3write -V - run: ./f3write --help - run: ${{ matrix.asroot.sudo }}./f3write -s 2 -e 4 -w 50000 ${{ matrix.volume }} @@ -89,6 +97,8 @@ jobs: windows: 'C:' - cygwin: . windows: . + - cygwin: relative-path + windows: relative-path - cygwin: / windows: 'C:\cygwin' @@ -104,6 +114,9 @@ jobs: - run: "$Env:LDFLAGS = '-Wl,--stack,4000000'; make" + - if: matrix.volume.windows == 'relative-path' + run: New-Item -ItemType Directory -Path relative-path + - run: '& .\f3write.exe -V' - run: '& .\f3write.exe --help' - run: '& .\f3write.exe -s 2 -e 4 -w 50000 ${{ matrix.volume.cygwin }}'