sbx-kits/grain-toolchainpublic Fork
⑂ main
Commits
⬇ Clone ▾
git clone https://git.rickub.com/sbx-kits/grain-toolchain.git
git clone ssh://git@rickub.com/sbx-kits/grain-toolchain.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. bb06360 · on main · k33g · 4h ago
grain-toolchain.yaml · 38 lines · 1.0 KBYAML Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# syntax=docker/sandbox-kit:3
schemaVersion: "3"
kind: mixin
displayName: Grain toolchain
description: >-
  Grain compiler (grain compile/run/format/doc/lsp) from the official
  GitHub release, for building WebAssembly modules inside a sandbox.
sourceUrl: https://github.com/grain-lang/grain
licenses: [LGPL-3.0-only]
version: "0.7.3"

args:
  grain_version:
    default: "0.7.3"
    pattern: '^[0-9]+\.[0-9]+\.[0-9]+$'
    description: Grain release to install (tag grain-v<version>)
    buildArg: GRAIN_VERSION

provides:
  - "grain@${{ kit.args.grain_version }}"

capabilities:
  # The compiler itself is offline (stdlib and Binaryen are bundled in the
  # binary). GitHub is only reached to read docs / release notes.
  - type: com.docker.sandbox/network-policy@1
    config:
      runtime:
        allow:
          - github.com
          - objects.githubusercontent.com
          - grain-lang.org

  - type: com.docker.sandbox/agent-context@1
    optional: true
    config:
      contentFile: ./grain-context.md

dockerfile: grain-toolchain.dockerfile