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
29 changes: 17 additions & 12 deletions .github/workflows/eosim-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install EoSim
run: git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim && pip install /tmp/EoSim
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Verify installation
run: |
# Assert the installed package version matches the pinned tag.
Expand Down Expand Up @@ -98,12 +100,9 @@ jobs:
with:
python-version: "3.12"
- name: Install EoSim
run: |
# Install from a git checkout: no release ships a wheel.
git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} \
https://github.com/embeddedos-org/EoSim.git /tmp/EoSim
pip install /tmp/EoSim
# (platforms ship in-package since v3.0.2; no copy needed)
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Simulate ${{ matrix.platform }}
# Two honest contracts, by engine (EoSim 4db3434a fixed #38):
# - native engine: `eosim run` without --firmware exits 2 with
Expand Down Expand Up @@ -155,9 +154,9 @@ jobs:
with:
python-version: "3.12"
- name: Install EoSim
run: |
git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim && pip install /tmp/EoSim
# (platforms ship in-package since v3.0.2; no copy needed)
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Boot guest and test EoSim inside
# Same engine contracts as nested-simulation (see above).
# The x86_64 guest is a qemu-engine platform: assert the
Expand Down Expand Up @@ -192,10 +191,13 @@ jobs:
# `eosim list` exits 0 with zero platforms, so "list && doctor" passed
# on both these runners while validating nothing. Assert a non-zero
# platform count from the in-package tree, as install-validate does.
- name: Install EoSim
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Test EoSim on Windows
shell: bash
run: |
git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim && pip install /tmp/EoSim
eosim --version
eosim doctor
python -c "
Expand All @@ -216,10 +218,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install EoSim
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Test EoSim on macOS
shell: bash
run: |
git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim && pip install /tmp/EoSim
eosim --version
eosim doctor
python -c "
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/simulation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
python-version: "3.12"
# EoSim v3.0.2 is a real tag. No release ships a wheel, so install from
# a git checkout; platforms ship in-package since v3.0.2 (no copy needed).
- name: Install EoSim from source
run: |
git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim
pip install -e /tmp/EoSim
- name: Install EoSim
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Validate platform
run: eosim info ${{ matrix.platform }}
- name: Simulate ${{ matrix.platform }}
Expand Down Expand Up @@ -90,10 +90,10 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Install EoSim from source
run: |
git clone --depth 1 --branch v${{ env.EOSIM_VERSION }} https://github.com/embeddedos-org/EoSim.git /tmp/EoSim
pip install -e /tmp/EoSim
- name: Install EoSim
uses: embeddedos-org/.github/.github/actions/install-eosim@master
with:
version: ${{ env.EOSIM_VERSION }}
- name: Validate all platforms
run: eosim list && eosim doctor
- name: List platforms
Expand Down
Loading