Skip to content

Commit

Permalink
feat(ci): update docker deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zcabter committed Oct 7, 2024
1 parent 205aa5d commit 59e5a0a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,32 @@ on:

env:
DOCKER_REGISTRY: ghcr.io
DOCKER_IMAGE_BASE: trilitech
DOCKER_IMAGE_BASE: jstz-dev/jstz

jobs:
build-kernel:
name: Build (Kernel)
runs-on: ubuntu-latest
runs-on: [x86_64, linux, nix]
steps:
- uses: actions/checkout@v4
- uses: Swatinem/[email protected]
- name: Rust setup
# FIXME: Once rustup adds a command to install a toolchain from rust-toolchain.toml, we can remove this.
run: rustup toolchain add 1.73.0 --profile minimal

- name: Build kernel
run: make build-kernel
- run: nix --version
- name: Format
run: nix --accept-flake-config fmt -- --fail-on-change
- name: Prevent blst
run: nix --accept-flake-config develop -j auto --command sh -c '[ -z "$(cargo tree | grep blst)" ]'
- name: Build
run: nix --accept-flake-config --log-format raw -L build -j auto .#jstz_kernel
- name: Upload kernel
id: upload-kernel
uses: actions/upload-artifact@v4
with:
name: jstz-kernel
path: target/wasm32-unknown-unknown/release/jstz_kernel.wasm
path: result/lib/jstz_kernel.wasm

build-docker:
name: Build (Docker)
needs: [build-kernel]
runs-on:
group: jstz
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand Down

0 comments on commit 59e5a0a

Please sign in to comment.