Skip to content

first workflow

first workflow #3

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
linux:
name: linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install packages
run: |
sudo apt-get update
sudo apt-get install -y g++ ninja
- name: llvm
run: |
cd wamr/wamr-compiler
./build_llvm.sh
- name: wamrc
run: |
cd wamr/wamr-compiler
mkdir build
cd build
cmake ..
cmake --build .
ls -la . *
- name: upload
uses: actions/upload-artifact@v4
with:
name: wamrc-linux
path: |
wamr/wamr-compiler/build/wamrc
windows:
name: windows
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: llvm
run: |
cd wamr/wamr-compiler
build_llvm.py
- name: wamrc
run: |
cd wamr/wamr-compiler
mkdir build
cd build
cmake ..
cmake --build . --config release
- name: upload
uses: actions/upload-artifact@v4
with:
name: wamrc-windows
path: |
wamr/wamr-compiler/build/Release/wamrc.exe