ci: Many more fixes

This commit is contained in:
Anmol Sethi 2022-11-20 02:11:15 -08:00
parent 0df3d4d15b
commit c09064dc60
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
5 changed files with 19 additions and 13 deletions

View file

@ -29,6 +29,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
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:
runs-on: ubuntu-latest
steps:

View file

@ -1,7 +1,7 @@
.POSIX:
.PHONY: all
all: fmt lint build test
all: fmt gen lint build test
ifdef CI
all: assert-linear
endif
@ -9,9 +9,9 @@ endif
.PHONY: fmt
fmt:
prefix "$@" ./ci/sub/fmt/make.sh
.PHONY: fmt-release
fmt-release_sh:
prefix "$@" ./ci/release/gen_sh.sh
.PHONY: gen
gen:
prefix "$@" ./ci/gen.sh
.PHONY: lint
lint:
prefix "$@" go vet --composites=false ./...

View file

@ -1,6 +1,6 @@
#!/bin/sh
set -eu
cd -- "$(dirname "$0")/../.."
cd -- "$(dirname "$0")/.."
. ./ci/sub/lib.sh
./ci/release/gen_install.sh

View file

@ -37,7 +37,3 @@ sh_c cat \
sh_c cat ./ci/release/_install.sh \
\| sed -n "'/cd -- \"\$(dirname/,/cd -/!p'" \>\> install.sh
sh_c chmod -w install.sh
if [ -n "${CI-}" ]; then
git_assert_clean
fi

View file

@ -27,7 +27,3 @@ sh_c cat \
./ci/sub/lib/log.sh \
\| sed "-e'/^\. /d'" \>\>./ci/release/template/scripts/lib.sh
sh_c chmod -w ./ci/release/template/scripts/lib.sh
if [ -n "${CI-}" ]; then
git_assert_clean
fi