From 709acbee27cba01fb4959d516463ebe59406f1c3 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 10 Nov 2022 21:41:26 +0100 Subject: [PATCH 1/2] GitHub Actions: build --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e780929 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +--- +name: Test + +on: + push: + branches: + - master + pull_request: {} + +jobs: + Linux: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - run: sudo apt-get install -y libparted-dev libudev-dev + - run: make all extra + + MacOS: + runs-on: macos-12 + steps: + - uses: actions/checkout@v3 + - run: brew install argp-standalone + - run: make + + Cygwin: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v3 + + - uses: cygwin/cygwin-install-action@v2 + with: + packages: gcc-core libargp-devel make + + - run: make From 6b589aa8cadea06cf2571dd03670a1337390570a Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 10 Nov 2022 22:31:34 +0100 Subject: [PATCH 2/2] GitHub Actions: test --- .github/workflows/test.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e780929..efbcd79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,18 @@ jobs: - run: sudo apt-get install -y libparted-dev libudev-dev - run: make all extra + - run: ./f3write -V + - run: ./f3write --help + - run: ./f3write -s 2 -e 4 -w 50000 /tmp + + - run: stat /tmp/2.h2w + - run: stat /tmp/3.h2w + - run: stat /tmp/4.h2w + + - run: ./f3read -V + - run: ./f3read --help + - run: ./f3read -s 2 -e 4 -r 50000 /tmp + MacOS: runs-on: macos-12 steps: @@ -22,6 +34,18 @@ jobs: - run: brew install argp-standalone - run: make + - run: ./f3write -V + - run: ./f3write --help + - run: ./f3write -s 2 -e 4 -w 50000 /tmp + + - run: stat /tmp/2.h2w + - run: stat /tmp/3.h2w + - run: stat /tmp/4.h2w + + - run: ./f3read -V + - run: ./f3read --help + - run: ./f3read -s 2 -e 4 -r 50000 /tmp + Cygwin: runs-on: windows-2022 steps: @@ -31,4 +55,16 @@ jobs: with: packages: gcc-core libargp-devel make - - run: make + - run: "$Env:LDFLAGS = '-Wl,--stack,4000000'; make" + + - run: '& .\f3write.exe -V' + - run: '& .\f3write.exe --help' + - run: '& .\f3write.exe -s 2 -e 4 -w 50000 /cygdrive/c' + + - run: 'Get-Item C:\2.h2w' + - run: 'Get-Item C:\3.h2w' + - run: 'Get-Item C:\4.h2w' + + - run: '& .\f3read.exe -V' + - run: '& .\f3read.exe --help' + - run: '& .\f3read.exe -s 2 -e 4 -r 50000 /cygdrive/c'