Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# MARK: Docker-specific
.git/
.gitignore
.gitattributes
.dockerignore
**/Dockerfile*
**/docker-compose*.yml

# CI/CD
.github/
.gitlab-ci.yml
.travis.yml
.circleci/

# Documentation
*.md
!README.md
docs/
LICENSE*

# Editor configs
.vscode/
.idea/
*.swp
*.swo
*~

# MARK: Copied from .gitignore
**/.DS_Store
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,25 @@ jobs:
target: x86_64-unknown-linux-musl
binary_ext: ""
arch: x86_64
# TODO: Add back when working
# - platform: linux
# runner: depot-ubuntu-24.04-arm-4
# target: aarch64-unknown-linux-musl
# binary_ext: ""
# arch: aarch64
- platform: windows
runner: depot-ubuntu-24.04-4
target: x86_64-pc-windows-gnu
binary_ext: ".exe"
arch: x86_64
- platform: macos
# Use Linux instead of macOS builders since macOS does not support Docker
runner: depot-ubuntu-24.04-4
target: x86_64-apple-darwin
binary_ext: ""
arch: x86_64
- platform: macos
# Use Linux instead of macOS builders since macOS does not support Docker
runner: depot-ubuntu-24.04-4
target: aarch64-apple-darwin
binary_ext: ""
Expand All @@ -111,9 +119,9 @@ jobs:
run: |
# Use Docker BuildKit
export DOCKER_BUILDKIT=1

# Build the binary using our Dockerfile
docker/engine/build.sh ${{ matrix.target }}
engine/docker/engine/build.sh ${{ matrix.target }}

# Make sure dist directory exists and binary is there
ls -la dist/
Expand Down Expand Up @@ -153,15 +161,12 @@ jobs:
strategy:
matrix:
include:
# TODO(RVT-4479): Add back ARM builder once manifest generation fixed
# - platform: linux/arm64
# runner: depot-ubuntu-24.04-4
# arch_suffix: -arm64
- platform: linux/arm64
runner: depot-ubuntu-24.04-arm-4
arch_suffix: -arm64
- platform: linux/x86_64
runner: depot-ubuntu-24.04-4
# TODO: Replace with appropriate arch_suffix when needed
# arch_suffix: -amd64
arch_suffix: ''
arch_suffix: -amd64
runs-on: ${{ matrix.runner }}
steps:
- name: Setup Docker on macOS
Expand All @@ -188,7 +193,7 @@ jobs:
context: .
push: true
tags: rivetkit/engine:full-${{ steps.vars.outputs.sha_short }}${{ matrix.arch_suffix }}
file: docker/universal/Dockerfile
file: engine/docker/universal/Dockerfile
target: engine-full
platforms: ${{ matrix.platform }}
build-args: |
Expand All @@ -205,7 +210,7 @@ jobs:
context: .
push: true
tags: rivetkit/engine:slim-${{ steps.vars.outputs.sha_short }}${{ matrix.arch_suffix }}
file: docker/universal/Dockerfile
file: engine/docker/universal/Dockerfile
target: engine-slim
platforms: ${{ matrix.platform }}
build-args: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt

- name: Check formatting
run: cargo fmt --all -- --check

Expand All @@ -62,11 +62,11 @@ jobs:
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2

- name: Check
Expand All @@ -80,11 +80,11 @@ jobs:
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2

- name: Run tests
Expand Down
6 changes: 3 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",

Check notice on line 2 in biome.json

View workflow job for this annotation

GitHub Actions / quality

deserialize

The configuration schema version does not match the CLI version 2.3.0
"files": {
"includes": [
"**/*.js",
Expand All @@ -8,8 +8,7 @@
"!engine/artifacts",
"!engine/sdks",
"!engine/sdks/typescript/api-full",
"!engine/sdks/typescript/runner-protocol"
"!examples/snippets",
"!engine/sdks/typescript/runner-protocol",
"!frontend",
"!rivetkit-openapi/openapi.json",
"!scripts",
Expand All @@ -32,7 +31,8 @@
"rules": {
"recommended": true,
"style": {
"noUselessElse": "off"
"noUselessElse": "off",
"useNodejsImportProtocol": "error"
},
"correctness": {
"noUnusedImports": "warn"
Expand Down
8 changes: 4 additions & 4 deletions engine/artifacts/errors/api.rate_limited.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/namespace.invalid_name.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.input_too_large.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.key_too_large.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.meta_error.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.not_found.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.simple_error.json

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

8 changes: 4 additions & 4 deletions engine/artifacts/errors/test.test_error.json

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

Loading
Loading