From 37443900344d6569e2a89a6f5b12a9228193a7e3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 17 Jul 2024 17:38:48 +0200 Subject: [PATCH] Create iroh_on_three_oses.yml --- .github/workflows/iroh_on_three_oses.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/iroh_on_three_oses.yml diff --git a/.github/workflows/iroh_on_three_oses.yml b/.github/workflows/iroh_on_three_oses.yml new file mode 100644 index 00000000..bc4cfc8d --- /dev/null +++ b/.github/workflows/iroh_on_three_oses.yml @@ -0,0 +1,35 @@ +name: iroh_on_three_oses +on: [workflow_dispatch] +jobs: + rust_on_three_oses: + strategy: + fail-fast: false + max-parallel: 4 + matrix: + os: [macos-13, macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + # - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + # https://iroh.computer/docs/install + - run: curl -fsSL https://sh.iroh.computer/install.sh | sh + - run: pip install --upgrade pip + # https://iroh.computer/docs/sdks/python + - run: $ pip install iroh + # https://iroh.computer/docs/api/doc-new -- click 'python' at the right + - shell: python + run: | + import iroh + + IROH_DATA_DIR = "./iroh_data_dir" + + node = iroh.IrohNode(IROH_DATA_DIR) + print("Started Iroh node: {}".format(node.node_id())) + + author = node.author_create() + print("Created author: {}".format(author.to_string())) + + doc = node.doc_create() + print("Created doc: {}".format(doc.id().to_string()))