Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: install the ape loader to ubuntu, make cat test not depend on ape…
Browse files Browse the repository at this point in the history
… loader being installed
G4Vi committed Oct 24, 2023
1 parent bca066f commit 5c94bfe
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -53,24 +53,25 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
#- name: Install APE loader on Ubuntu
# if: ${{ matrix.os == 'ubuntu-latest' }}
# shell: bash
# run: |
# git clone https://github.com/jart/cosmopolitan.git
# cosmopolitan/bin/ape-install
- 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: Chmod
shell: bash
run: chmod +x hermit/*
- name: Test APEs
shell: bash
run: |
chmod +x hermit/*
hermit/cowsay.hermit.com hello
echo aaa | hermit/cowsay.hermit.com
hermit/cat.hermit.com cosmopolitan/README.md
echo aaa > text.txt
hermit/cat.hermit.com text.txt
[[ $(echo aeiou | hermit/count_vowels.hermit.com) == 5 ]]
[[ $(echo bcd | hermit/count_vowels.hermit.com) == 0 ]]

0 comments on commit 5c94bfe

Please sign in to comment.