ci: Many more fixes
This commit is contained in:
parent
0df3d4d15b
commit
c09064dc60
5 changed files with 19 additions and 13 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -29,6 +29,20 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
|
||||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
|
gen:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version-file: ./go.mod
|
||||||
|
cache: true
|
||||||
|
- run: COLOR=1 ./make.sh gen
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
|
||||||
|
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
8
Makefile
8
Makefile
|
|
@ -1,7 +1,7 @@
|
||||||
.POSIX:
|
.POSIX:
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: fmt lint build test
|
all: fmt gen lint build test
|
||||||
ifdef CI
|
ifdef CI
|
||||||
all: assert-linear
|
all: assert-linear
|
||||||
endif
|
endif
|
||||||
|
|
@ -9,9 +9,9 @@ endif
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
prefix "$@" ./ci/sub/fmt/make.sh
|
prefix "$@" ./ci/sub/fmt/make.sh
|
||||||
.PHONY: fmt-release
|
.PHONY: gen
|
||||||
fmt-release_sh:
|
gen:
|
||||||
prefix "$@" ./ci/release/gen_sh.sh
|
prefix "$@" ./ci/gen.sh
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
prefix "$@" go vet --composites=false ./...
|
prefix "$@" go vet --composites=false ./...
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
cd -- "$(dirname "$0")/../.."
|
cd -- "$(dirname "$0")/.."
|
||||||
. ./ci/sub/lib.sh
|
. ./ci/sub/lib.sh
|
||||||
|
|
||||||
./ci/release/gen_install.sh
|
./ci/release/gen_install.sh
|
||||||
|
|
@ -37,7 +37,3 @@ sh_c cat \
|
||||||
sh_c cat ./ci/release/_install.sh \
|
sh_c cat ./ci/release/_install.sh \
|
||||||
\| sed -n "'/cd -- \"\$(dirname/,/cd -/!p'" \>\> install.sh
|
\| sed -n "'/cd -- \"\$(dirname/,/cd -/!p'" \>\> install.sh
|
||||||
sh_c chmod -w install.sh
|
sh_c chmod -w install.sh
|
||||||
|
|
||||||
if [ -n "${CI-}" ]; then
|
|
||||||
git_assert_clean
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,3 @@ sh_c cat \
|
||||||
./ci/sub/lib/log.sh \
|
./ci/sub/lib/log.sh \
|
||||||
\| sed "-e'/^\. /d'" \>\>./ci/release/template/scripts/lib.sh
|
\| sed "-e'/^\. /d'" \>\>./ci/release/template/scripts/lib.sh
|
||||||
sh_c chmod -w ./ci/release/template/scripts/lib.sh
|
sh_c chmod -w ./ci/release/template/scripts/lib.sh
|
||||||
|
|
||||||
if [ -n "${CI-}" ]; then
|
|
||||||
git_assert_clean
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue