-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to sqlite storage backend #major
- Loading branch information
Showing
47 changed files
with
2,726 additions
and
720 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -36,26 +36,25 @@ jobs: | |
- tests | ||
- golangci | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
outputs: | ||
new_tag: ${{ steps.tag_action.outputs.new_tag }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Bump version and push tag | ||
if: github.ref == 'refs/heads/main' | ||
id: tag_action | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
PRERELEASE: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
build: | ||
needs: version_tag | ||
runs-on: ubuntu-latest | ||
## need decent versioning strategy in future | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
CGO_ENABLED: 0 | ||
strategy: | ||
|
@@ -69,9 +68,19 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
## build tailwind assets | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '19' | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: npm run build | ||
## setup go | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "^1.16" | ||
go-version: "^1.22" | ||
## above is fine to get latest for now, also save a copy with short sha | ||
- id: vars | ||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | ||
|
@@ -87,10 +96,21 @@ jobs: | |
- id: upload-files | ||
uses: google-github-actions/[email protected] | ||
with: | ||
path: ${{ matrix.goos }}/${{ matrix.goarch }} | ||
destination: cheek-scheduler/${{ matrix.goos }}/ | ||
path: ${{ matrix.goos }}/${{ matrix.goarch }}/cheek-${{ steps.vars.outputs.sha_short }} | ||
destination: cheek-scheduler/${{ matrix.goos }}/${{ matrix.goarch }}/ | ||
- uses: google-github-actions/[email protected] | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
path: ${{ matrix.goos }}/${{ matrix.goarch }}/cheek-${{ needs.version_tag.outputs.new_tag }} | ||
destination: cheek-scheduler/${{ matrix.goos }}/${{ matrix.goarch }}/ | ||
- uses: google-github-actions/[email protected] | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
path: ${{ matrix.goos }}/${{ matrix.goarch }}/cheek | ||
destination: cheek-scheduler/${{ matrix.goos }}/${{ matrix.goarch }}/ | ||
|
||
docker-build: | ||
## only do this on main | ||
needs: | ||
- build | ||
- version_tag | ||
|
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 |
---|---|---|
|
@@ -252,4 +252,7 @@ build | |
cheek | ||
cover.out | ||
butt | ||
*sheep | ||
*sheep | ||
*.sqlite3 | ||
node_modules | ||
*.out |
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
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.