Browse and listen to thousands of radio stations across the globe right from your terminal ๐ŸŒŽ ๐Ÿ“ป ๐ŸŽตโœจ
radio rust tokio web-radio command-line-tool tui
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

add buildRustFlags functions

+22 -17
+2 -17
.fluentci/src/dagger/jobs.ts
··· 1 1 import Client, { connect } from "../../deps.ts"; 2 + import { buildRustFlags } from "./lib.ts"; 2 3 3 4 export enum Job { 4 5 test = "test", ··· 28 29 }; 29 30 30 31 export const build = async (src = ".") => { 31 - let rustflags = ""; 32 - switch (Deno.env.get("TARGET")) { 33 - case "aarch64-unknown-linux-gnu": 34 - rustflags = `-C linker=aarch64-linux-gnu-gcc \ 35 - -L/usr/aarch64-linux-gnu/lib \ 36 - -L/build/sysroot/usr/lib/aarch64-linux-gnu \ 37 - -L/build/sysroot/lib/aarch64-linux-gnu`; 38 - break; 39 - case "armv7-unknown-linux-gnueabihf": 40 - rustflags = `-C linker=arm-linux-gnueabihf-gcc \ 41 - -L/usr/arm-linux-gnueabihf/lib \ 42 - -L/build/sysroot/usr/lib/arm-linux-gnueabihf \ 43 - -L/build/sysroot/lib/arm-linux-gnueabihf`; 44 - break; 45 - default: 46 - break; 47 - } 32 + const rustflags = buildRustFlags(); 48 33 await connect(async (client: Client) => { 49 34 const context = client.host().directory(src); 50 35 const ctr = client
+20
.fluentci/src/dagger/lib.ts
··· 1 + export function buildRustFlags(): string { 2 + let rustflags = ""; 3 + switch (Deno.env.get("TARGET")) { 4 + case "aarch64-unknown-linux-gnu": 5 + rustflags = `-C linker=aarch64-linux-gnu-gcc \ 6 + -L/usr/aarch64-linux-gnu/lib \ 7 + -L/build/sysroot/usr/lib/aarch64-linux-gnu \ 8 + -L/build/sysroot/lib/aarch64-linux-gnu`; 9 + break; 10 + case "armv7-unknown-linux-gnueabihf": 11 + rustflags = `-C linker=arm-linux-gnueabihf-gcc \ 12 + -L/usr/arm-linux-gnueabihf/lib \ 13 + -L/build/sysroot/usr/lib/arm-linux-gnueabihf \ 14 + -L/build/sysroot/lib/arm-linux-gnueabihf`; 15 + break; 16 + default: 17 + break; 18 + } 19 + return rustflags; 20 + }