commit 8659073399c79915bb927a27aa248585ad247b75
parent cdc0fbe1a838e1057eccd9193a6326d25da04a97
Author: Sean Enck <sean@ttypty.com>
Date: Fri, 17 Feb 2023 19:56:06 -0500
helper script
Diffstat:
3 files changed, 15 insertions(+), 22 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
@@ -10,13 +10,16 @@ jobs:
steps:
- name: "deps"
run: apk add go make git
- - uses: enckse/lockbox/scripts/ci@master
+ - name: "build"
+ run: ./scripts/ci/build.sh
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "deps"
run: sudo apt-get install -y make git golang
+ - name: "build"
+ run: ./scripts/ci/build.sh
macos-build:
runs-on: macos-latest
steps:
@@ -26,6 +29,4 @@ jobs:
- name: "deps"
run: brew install go
- name: "build"
- run: make build
- - name: "check"
- run: make check
+ run: ./scripts/ci/build.sh
diff --git a/scripts/ci/action.yml b/scripts/ci/action.yml
@@ -1,18 +0,0 @@
-name: "build steps"
-
-runs:
- using: "composite"
- steps:
- - uses: actions/checkout@v3
- - name: "remove .git"
- shell: sh
- run: rm -rf .git
- - name: "uname"
- shell: sh
- run: uname -a
- - name: "build"
- shell: sh
- run: make build
- - name: "check"
- shell: sh
- run: make check
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+rm -rf ".git"
+if ! make build; then
+ echo "build failed"
+ exit 1
+fi
+if ! make check; then
+ echo "check failed"
+ exit 1
+fi