Ethereum doc (#12) #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install llvm 16 | |
run: sudo apt-get purge --auto-remove llvm python3-lldb-14 llvm-14 && wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 16 | |
- name: Install litecoin for tests | |
run: | | |
tarball=litecoin.tar.gz | |
wget -O "$tarball" https://download.litecoin.org/litecoin-0.21.2.2/linux/litecoin-0.21.2.2-x86_64-linux-gnu.tar.gz | |
tar xvzf "$tarball" | |
sudo cp -r litecoin-*/* /usr/local/ | |
litecoin-cli --help | |
- name: Install monero wallet cli for tests | |
run: | | |
tarball=monero-wallet-cli.tar.gz | |
wget -O "$tarball" https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.2.2.tar.bz2 | |
tar xvaf "$tarball" | |
sudo cp -r monero-*/* /usr/local/bin/ | |
monero-wallet-cli --help | |
- name: Install solana cli for tests | |
run: | | |
tarball=solana-release-x86_64-unknown-linux-gnu.tar.bz2 | |
wget -O "$tarball" https://github.com/solana-labs/solana/releases/download/v1.16.1/solana-release-x86_64-unknown-linux-gnu.tar.bz2 | |
tar xvaf "$tarball" | |
sudo cp -r solana-*/* /usr/local/ | |
solana --help | |
solana-keygen new --force --no-bip39-passphrase | |
- name: Build contract with clang | |
run: make -f Makefile.clang all | |
- name: Build example with clang | |
run: make -f examples/auth-demo/Makefile.clang all | |
- name: Run auth_rust tests | |
run: cd tests/auth_rust && cargo test | |
- name: Install ckb-debugger | |
run: cd tests/auth_spawn_rust && make install | |
- name: Run auth_spawn_rust tests | |
run: cd tests/auth_spawn_rust && make all | |
- name: Install cardano tools | |
run: cd tests/cardano_lock && make install_cardano_tools | |
- name: Run cardano tests | |
run: cd tests/cardano_lock && make all |