Skip to content

Commit

Permalink
Add in amber as a package (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
asheliahut authored Oct 30, 2024
1 parent 0a575bf commit 2917004
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/amber/brioche.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions packages/amber/project.bri
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import * as std from "std";
import { cargoBuild } from "rust";

export const project = {
name: "amber",
version: "0.3.5-alpha",
};

const source = Brioche.download(
`https://github.com/amber-lang/amber/archive/refs/tags/${project.version}.tar.gz`,
)
.unarchive("tar", "gzip")
.peel();

export default function amber(): std.Recipe<std.Directory> {
return cargoBuild({
source,
runnable: "bin/amber",
});
}

export function test() {
return std.runBash`
amber --version | tee "$BRIOCHE_OUTPUT"
`.dependencies(amber());
}

0 comments on commit 2917004

Please sign in to comment.