forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deb package and nightly distribution (evcc-io#1977)
- Add publishing automated debian package releases via Cloudsmith.io, which allows evcc to be installed and updated via `apt` - Add nightly docker (:latest) and deb distribution - Disable docker builds for every commit on master - Allow nightly builds to be triggered manually
- Loading branch information
1 parent
533731b
commit 54a4fe7
Showing
11 changed files
with
459 additions
and
208 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Default | ||
|
||
on: [push, pull_request, workflow_call] | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
id: go | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.go-version }}-go- | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install tools | ||
run: make install | ||
|
||
- name: Assets | ||
run: make assets | ||
|
||
- name: Porcelain | ||
run: | | ||
go mod tidy | ||
test -z "$(git status --porcelain)" || (git status; git diff; false) | ||
- name: Build | ||
run: make build | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: latest | ||
skip-go-installation: true | ||
skip-pkg-cache: true | ||
skip-build-cache: true | ||
|
||
- name: Test | ||
run: make test | ||
|
||
build-ui: | ||
name: Build UI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cache NPM modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm- | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install tools | ||
run: make install-ui | ||
|
||
- name: Build | ||
run: make ui | ||
|
||
- name: Lint | ||
run: make lint-ui | ||
|
||
- name: Test | ||
run: make test-ui | ||
|
||
- name: Porcelain | ||
run: | | ||
test -z "$(git status --porcelain)" || (git status; git diff; false) |
Oops, something went wrong.