-
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.
Merge pull request #501 from narumincho/dev-dev
デスクトップアプリなど
- Loading branch information
Showing
28 changed files
with
2,616 additions
and
1,005 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# https://minerva.mamansoft.net/Notes/GitHub+Actions%E3%81%A7Rust%E3%82%92cross+compile%E3%83%93%E3%83%AB%E3%83%89 を参考にした | ||
name: Desktop Build | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
name: Release binary | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
artifact_name: hibou | ||
asset_name: hibou-x86_64-unknown-linux-gnu | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-musl | ||
artifact_name: hibou | ||
asset_name: hibou-x86_64-unknown-linux-musl | ||
- os: windows-latest | ||
target: x86_64-pc-windows-msvc | ||
artifact_name: hibou.exe | ||
asset_name: hibou-x86_64-pc-windows-msvc | ||
- os: macos-latest | ||
target: x86_64-apple-darwin | ||
artifact_name: hibou | ||
asset_name: hibou-x86_64-apple-darwin | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: cd ./desktop | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: build | ||
args: --release --target ${{ matrix.target }} --all-features --verbose | ||
- name: Upload binaries to release | ||
uses: svenstaro/[email protected] | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }} | ||
asset_name: ${{ matrix.asset_name }} | ||
tag: ${{ github.ref }} | ||
overwrite: true |
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 |
---|---|---|
|
@@ -23,4 +23,5 @@ tsconfig.tsbuildinfo | |
/.vercel/ | ||
|
||
.vercel | ||
/databaseSetupSecret.ts | ||
/databaseMigrationSecret.ts | ||
target/ |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from "react"; | ||
import { ProjectId } from "../common/zodType"; | ||
import { trpc } from "../hooks/trpc"; | ||
|
||
export const ProjectCard = (props: { | ||
readonly projectId: ProjectId; | ||
}): React.ReactElement => { | ||
const project = trpc.useQuery(["getProjectById", props.projectId]); | ||
switch (project.status) { | ||
case "error": | ||
return <div>error...</div>; | ||
case "idle": | ||
return <div>....</div>; | ||
case "loading": | ||
return <div>..</div>; | ||
case "success": | ||
return <div>{project.data?.name}</div>; | ||
} | ||
}; |
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,12 @@ | ||
import { getFaunaClient, migration } from "./functions/faunadb-interface"; | ||
import { faunaServerKey } from "./databaseMigrationSecret"; | ||
|
||
/** | ||
* tsconfig.json の `exclude` から `databaseMigration.ts` を外して実行する必要あり | ||
*/ | ||
export const main = async (): Promise<void> => { | ||
await migration(getFaunaClient(faunaServerKey)); | ||
console.log("マイグレーション完了!"); | ||
}; | ||
|
||
main(); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
5736ff5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
definy – ./
definy.vercel.app
definy-narumincho.vercel.app
definy-git-main-narumincho.vercel.app