Skip to content

Commit

Permalink
Create GitHub build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
encode42 committed Apr 28, 2024
1 parent 2f3d39c commit 5d608da
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on:
push:
branches:
- main
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Build
run: |
bun build.ts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: chiron
path: build/*
10 changes: 5 additions & 5 deletions src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const database = new Database("db.sqlite", {
database.exec("PRAGMA journal_mode = WAL;");
database
.query(`
CREATE TABLE IF NOT EXISTS known_projects (
id CHARACTER(8) PRIMARY KEY,
last_seen DATETIME DEFAULT CURRENT_TIMESTAMP
);
`)
CREATE TABLE IF NOT EXISTS known_projects (
id CHARACTER(8) PRIMARY KEY,
last_seen DATETIME DEFAULT CURRENT_TIMESTAMP
);
`)
.run();

const query = {
Expand Down

0 comments on commit 5d608da

Please sign in to comment.