Skip to content

Commit

Permalink
work towards fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Dec 30, 2024
1 parent fd1c123 commit 6a2d9ea
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ jobs:
# }
# return asset.browser_download_url;
# result-encoding: string
- name: Download the Foundry release
run: wget -q https://github.com/foundry-rs/foundry/releases/download/nightly-de596a4db781933f0c95805bd1c8c05e65f03d4f/foundry_nightly_linux_amd64.tar.gz -O foundry.tar.gz
- name: Download Foundry
run: wget -q https://github.com/foundry-rs/foundry/releases/download/nightly-c3069a50ba18cccfc4e7d5de9b9b388811d9cc7b/foundry_nightly_linux_amd64.tar.gz -O foundry.tar.gz
#run: wget -q ${DOWNLOAD_URL} -O foundry.tar.gz
#env:
# DOWNLOAD_URL: ${{ steps.get-latest-foundry-release.outputs.result }}
- name: Untar the release
- name: Untar Foundry
run: tar zxf foundry.tar.gz
- name: Add Foundry to path
run: echo "$PWD" >> $GITHUB_PATH
Expand Down Expand Up @@ -105,28 +105,28 @@ jobs:
- name: Unzip the release
run: unzip kit.zip

- name: Get latest release from kinode-dao/kit
id: get-latest-kit-release
uses: actions/github-script@v6
with:
script: |
const repo = {
owner: 'kinode-dao',
repo: 'kinode',
};
const release = await github.rest.repos.getLatestRelease(repo);
const asset = release.data.assets.find(asset => asset.name.match(/kinode-x86_64-unknown-linux-gnu\.zip/));
if (!asset) {
throw new Error('Asset not found');
}
return asset.browser_download_url;
result-encoding: string
- name: Download the Kinode release
run: wget -q ${DOWNLOAD_URL} -O kinode.zip
env:
DOWNLOAD_URL: ${{ steps.get-latest-kit-release.outputs.result }}
- name: Unzip the Kinode release
run: unzip kinode.zip
#- name: Get latest release from kinode-dao/kinode
# id: get-latest-kinode-release
# uses: actions/github-script@v6
# with:
# script: |
# const repo = {
# owner: 'kinode-dao',
# repo: 'kinode',
# };
# const release = await github.rest.repos.getLatestRelease(repo);
# const asset = release.data.assets.find(asset => asset.name.match(/kinode-x86_64-unknown-linux-gnu\.zip/));
# if (!asset) {
# throw new Error('Asset not found');
# }
# return asset.browser_download_url;
# result-encoding: string
#- name: Download the Kinode release
# run: wget -q ${DOWNLOAD_URL} -O kinode.zip
# env:
# DOWNLOAD_URL: ${{ steps.get-latest-kit-release.outputs.result }}
#- name: Unzip the Kinode release
# run: unzip kinode.zip

- name: Run Kit tests
#run: ./kit t code/tests.toml
Expand Down
4 changes: 2 additions & 2 deletions code/tests.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# runtime = { FetchVersion = "latest" }
runtime = { RepoPath = "../kinode" }
runtime = { FetchVersion = "latest" }
# runtime = { RepoPath = "../kinode" }
persist_home = false
runtime_build_release = false
always_print_node_output = false
Expand Down

0 comments on commit 6a2d9ea

Please sign in to comment.