Skip to content

Commit 22ee5c2

Browse files
committed
build: Migrate to Obelisk 0.41.0-rc.1
1 parent 0735e91 commit 22ee5c2

22 files changed

Lines changed: 99 additions & 83 deletions

File tree

.github/workflows/sync-flake-lock.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525

2626
- name: Sync flake.lock and rust-toolchain.toml from upstream
2727
run: |
28-
curl https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest/flake.lock -o flake.lock
29-
curl https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest/rust-toolchain.toml -o rust-toolchain.toml
28+
curl https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest-pre/flake.lock -o flake.lock
29+
curl https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest-pre/rust-toolchain.toml -o rust-toolchain.toml
3030
3131
- name: Populate the nix store without Obelisk # pull base deps from cache.nixos.org first
3232
run: |
@@ -81,4 +81,3 @@ jobs:
8181
fi
8282
env:
8383
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PR_RW }}
84-

activity-rs/graphql-async/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cargo test -- --ignored --nocapture
6262
### Run the Server
6363
Start the server:
6464
```sh
65-
obelisk server run --deployment deployment.toml
65+
obelisk server run --server-config server.toml --deployment deployment.toml
6666
```
6767

6868
### Test the Activity

activity-rs/graphql-async/deployment.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ location = "target/wasm32-wasip2/release/{{crate_name}}.wasm"
44
[[activity_wasm.allowed_host]]
55
pattern = "https://api.github.com"
66
methods = ["POST"]
7-
[activity_wasm.allowed_host.secrets]
8-
env_vars = ["GITHUB_TOKEN"]
7+
secrets = ["GITHUB_TOKEN"]
98
replace_in = ["headers"]

activity-rs/graphql-async/flake.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

activity-rs/graphql-async/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
};
1010
};
1111
obelisk = {
12-
url = "github:obeli-sk/obelisk/latest";
12+
url = "github:obeli-sk/obelisk/latest-pre";
1313
inputs = {
1414
nixpkgs.follows = "nixpkgs";
1515
flake-utils.follows = "flake-utils";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[secrets]
2+
GITHUB_TOKEN = { env = "GITHUB_TOKEN" }
3+
4+
[[outbound_http.allowed_host]]
5+
pattern = "https://api.github.com"
6+
methods = ["POST"]
7+
secrets = ["GITHUB_TOKEN"]
8+
replace_in = ["headers"]

activity-rs/http-simple-async/Justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ test:
77
TEST_URL="{{ "test_url" | prepend: "{{" | append: "}}" }}" cargo test -- --ignored --nocapture
88
99
serve:
10-
obelisk server run --deployment deployment.toml
10+
obelisk server run --server-config server.toml --deployment deployment.toml
1111
1212
submit:
1313
obelisk execution submit --follow template-http:activity/http-get.get-plain '["{{ "test_url" | prepend: "{{" | append: "}}" }}"]'
14-

activity-rs/http-simple-async/flake.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

activity-rs/http-simple-async/flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
};
1010
};
1111
obelisk = {
12-
url = "github:obeli-sk/obelisk/latest";
12+
url = "github:obeli-sk/obelisk/latest-pre";
1313
inputs = {
1414
nixpkgs.follows = "nixpkgs";
1515
flake-utils.follows = "flake-utils";
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[[outbound_http.allowed_host]]
2+
pattern = "https://api.ipify.org"
3+
methods = ["GET"]
4+
5+
[[outbound_http.allowed_host]]
6+
pattern = "http://localhost:8080"
7+
methods = ["GET"]

0 commit comments

Comments
 (0)