GitHub Actions: also test "volume" .

This commit is contained in:
Alexander A. Klimov
2022-11-11 20:44:35 +01:00
parent 0acac543f1
commit d01f5cad6e

View File

@@ -9,7 +9,16 @@ on:
jobs:
Linux:
strategy:
fail-fast: false
matrix:
volume:
- /tmp
- .
name: Linux ${{ matrix.volume }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y libparted-dev libudev-dev
@@ -17,18 +26,27 @@ jobs:
- run: ./f3write -V
- run: ./f3write --help
- run: ./f3write -s 2 -e 4 -w 50000 /tmp
- run: ./f3write -s 2 -e 4 -w 50000 ${{ matrix.volume }}
- run: stat /tmp/2.h2w
- run: stat /tmp/3.h2w
- run: stat /tmp/4.h2w
- run: stat ${{ matrix.volume }}/2.h2w
- run: stat ${{ matrix.volume }}/3.h2w
- run: stat ${{ matrix.volume }}/4.h2w
- run: ./f3read -V
- run: ./f3read --help
- run: ./f3read -s 2 -e 4 -r 50000 /tmp
- run: ./f3read -s 2 -e 4 -r 50000 ${{ matrix.volume }}
MacOS:
strategy:
fail-fast: false
matrix:
volume:
- /tmp
- .
name: MacOS ${{ matrix.volume }}
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: brew install argp-standalone
@@ -36,18 +54,29 @@ jobs:
- run: ./f3write -V
- run: ./f3write --help
- run: ./f3write -s 2 -e 4 -w 50000 /tmp
- run: ./f3write -s 2 -e 4 -w 50000 ${{ matrix.volume }}
- run: stat /tmp/2.h2w
- run: stat /tmp/3.h2w
- run: stat /tmp/4.h2w
- run: stat ${{ matrix.volume }}/2.h2w
- run: stat ${{ matrix.volume }}/3.h2w
- run: stat ${{ matrix.volume }}/4.h2w
- run: ./f3read -V
- run: ./f3read --help
- run: ./f3read -s 2 -e 4 -r 50000 /tmp
- run: ./f3read -s 2 -e 4 -r 50000 ${{ matrix.volume }}
Cygwin:
strategy:
fail-fast: false
matrix:
volume:
- cygwin: /cygdrive/c
windows: 'C:'
- cygwin: .
windows: .
name: Cygwin ${{ matrix.volume.cygwin }}
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
@@ -59,12 +88,12 @@ jobs:
- run: '& .\f3write.exe -V'
- run: '& .\f3write.exe --help'
- run: '& .\f3write.exe -s 2 -e 4 -w 50000 /cygdrive/c'
- run: '& .\f3write.exe -s 2 -e 4 -w 50000 ${{ matrix.volume.cygwin }}'
- run: 'Get-Item C:\2.h2w'
- run: 'Get-Item C:\3.h2w'
- run: 'Get-Item C:\4.h2w'
- run: 'Get-Item ${{ matrix.volume.windows }}\2.h2w'
- run: 'Get-Item ${{ matrix.volume.windows }}\3.h2w'
- run: 'Get-Item ${{ matrix.volume.windows }}\4.h2w'
- run: '& .\f3read.exe -V'
- run: '& .\f3read.exe --help'
- run: '& .\f3read.exe -s 2 -e 4 -r 50000 /cygdrive/c'
- run: '& .\f3read.exe -s 2 -e 4 -r 50000 ${{ matrix.volume.cygwin }}'