Skip to content

Commit

Permalink
ci: test APEs on Linux, Mac, and Windows (#10). Windows testing is in…
Browse files Browse the repository at this point in the history
…complete.

* ci: test APEs on Linux, Mac, and Windows

* ci: fix paths to executables

* ci: make executables executable

* ci: adjust more

* ci: install the ape loader to ubuntu, make cat test not depend on ape loader being installed

* ci: seperate steps to debug the new technology

* ci: ditto

* fix: adjust WAMR to use getrandom on cosmopolitan

* ci: test echo on the new technology

* ci: test redirecting on nt

* ci: try cmd.exe

* ci: try cmd.exe, with correct slash

* fix: failing tests on NT
  • Loading branch information
G4Vi committed Oct 25, 2023
1 parent 71fa5f0 commit cd15655
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
36 changes: 35 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,46 @@ jobs:
build/count_vowels.hermit.com
build/cowsay.hermit.com
test:
name: Test ${{ matrix.os }}
needs: [build-binaries]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install APE loader on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
run: |
sudo mkdir -p /opt
sudo chmod 1777 /opt
git clone https://github.com/jart/cosmopolitan.git /opt/cosmo
export PATH="/opt/cosmo/bin:/opt/cosmos/bin:$PATH"
ape-install
- name: Download APEs
uses: actions/download-artifact@v3
- name: Test APEs (no output on NT?)
shell: bash
run: |
chmod +x hermit/*
hermit/cowsay.hermit.com hello
echo aaa | hermit/cowsay.hermit.com
echo aaa > text.txt
hermit/cat.hermit.com text.txt
- name: Test, but not on the New Technology
if: ${{ matrix.os != 'windows-latest' }}
shell: bash
run: |
[[ $(echo aeiou | hermit/count_vowels.hermit.com) == 5 ]]
[[ $(echo bcd | hermit/count_vowels.hermit.com) == 0 ]]
create-release:
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
needs: [ build-binaries ]
needs: [ build-binaries, test ]
steps:
- name: Fetch build artifacts
if: ${{ github.ref_type == 'tag' }}
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "wasm-micro-runtime"]
path = wasm-micro-runtime
url = https://github.com/bytecodealliance/wasm-micro-runtime
url = https://github.com/dylibso/wasm-micro-runtime
[submodule "dockerfile-parser-rs"]
path = dockerfile-parser-rs
url = https://github.com/dylibso/dockerfile-parser-rs

0 comments on commit cd15655

Please sign in to comment.