From f6fc6102b733cfc62aa53888c9b4ab173ff36bc1 Mon Sep 17 00:00:00 2001 From: Ferdinand Prantl Date: Fri, 15 Dec 2023 23:25:48 +0100 Subject: [PATCH] fix: Include man pages in asset archives --- .github/workflows/ci.yml | 7 ++++++- Makefile | 2 +- make.bat | 2 +- jsonlint.1 => man/jsonlint.1 | 0 jsonlint.v => src/jsonlint.v | 0 5 files changed, 8 insertions(+), 3 deletions(-) rename jsonlint.1 => man/jsonlint.1 (100%) rename jsonlint.v => src/jsonlint.v (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f43b1a..85cbf63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: id: bump uses: prantlf/bump-version-action@v2 with: - bump-files: jsonlint.v + bump-files: src/jsonlint.v - name: Shelve changes uses: prantlf/shelve-changes-action@v1 - name: Build and Test @@ -36,6 +36,7 @@ jobs: uses: prantlf/shelve-output-action@v2 with: enable: ${{ steps.bump.outputs.bumped }} + extra: man - name: Install ARM Cross-Compiler run: | sudo apt-get update @@ -47,6 +48,7 @@ jobs: with: enable: ${{ steps.bump.outputs.bumped }} arch: arm64 + extra: man macos: needs: @@ -68,6 +70,8 @@ jobs: - name: Shelve output if: ${{ needs.linux.outputs.changed == 'true' }} uses: prantlf/shelve-output-action@v2 + with: + extra: man - name: Build ARM run: make build RELEASE=1 MACOS_ARM=1 - name: Shelve output @@ -75,6 +79,7 @@ jobs: uses: prantlf/shelve-output-action@v2 with: arch: arm64 + extra: man windows: needs: diff --git a/Makefile b/Makefile index de2128c..24ea383 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ check: v vet . build: - v $(VFLAGS) jsonlint.v + v $(VFLAGS) -o jsonlint . test: ./test.sh diff --git a/make.bat b/make.bat index 9f88e3e..f19d7c5 100644 --- a/make.bat +++ b/make.bat @@ -1 +1 @@ -v -prod jsonlint.v +v -prod -o jsonlint . diff --git a/jsonlint.1 b/man/jsonlint.1 similarity index 100% rename from jsonlint.1 rename to man/jsonlint.1 diff --git a/jsonlint.v b/src/jsonlint.v similarity index 100% rename from jsonlint.v rename to src/jsonlint.v