Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Nov 30, 2024
1 parent b682873 commit b7ae7d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
19 changes: 4 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,17 @@ build:
make templatedocs

build_go:
for d in services/go.*; do \
for d in services/api services/jobserver; do \
echo $$d && cd ${PWD}/$$d && go build -v -o ${PWD}/out && cd ${PWD}; \
done

build_rust:
for d in services/rust.*; do \
PROJECT_NAME=$$(basename $$d) && \
OUTPUT_FILE=$$(echo $$PROJECT_NAME | tr . _) && \
echo $$d && cd ${PWD}/$$d && cargo build --release && \
mv ${PWD}/target/release/$$OUTPUT_FILE ${PWD}/out/$$PROJECT_NAME && \
cd ${PWD}; \
done
mkdir -p ${PWD}/out
cd services/bot && cargo build --release && mv ${PWD}/target/release/bot ${PWD}/out/bot && cd ${PWD}

build_rust_dbg:
mkdir -p ${PWD}/out/debug
for d in services/rust.*; do \
PROJECT_NAME=$$(basename $$d) && \
OUTPUT_FILE=$$(echo $$PROJECT_NAME | tr . _) && \
echo $$d && cd ${PWD}/$$d && cargo build && \
mv ${PWD}/target/debug/$$OUTPUT_FILE ${PWD}/out/debug/$$PROJECT_NAME && \
cd ${PWD}; \
done
cd services/bot && cargo build && mv ${PWD}/target/debug/bot ${PWD}/out/debug/bot && cd ${PWD}

copyassets:
ifndef CI_BUILD
Expand Down
13 changes: 0 additions & 13 deletions tygo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,3 @@ packages:
orderedmap.OrderedMap: "Record"
bigint.BigInt: "string /* bigint */"
discordgo.Channel: discordgo.Channel

- path: "go.jobs/types"
output_path: "services/website/src/lib/generated/jobs.ts"
frontmatter:
type_mappings:
time.Time: "string /* RFC3339 */"
pgtype.Text: "string | null /* nullable */"
pgtype.UUID: "string /* uuid */"
dovetypes.PlatformUser: PlatformUser /* from eureka-dovewing.ts */
pgtype.Timestamptz: "string | null /* RFC3339, nullable */"
orderedmap.OrderedMap: "Record"
bigint.BigInt: "string /* bigint */"
discordgo.Channel: discordgo.Channel

0 comments on commit b7ae7d8

Please sign in to comment.