diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2f00839 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,73 @@ +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-build + + - name: llvm + run: | + cd wamr/wamr-compiler + ls -la . * + ./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 + ls -la . * + python 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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..57ff979 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "wamr"] + path = wamr + url = https://github.com/bytecodealliance/wasm-micro-runtime.git diff --git a/wamr b/wamr new file mode 160000 index 0000000..c85bada --- /dev/null +++ b/wamr @@ -0,0 +1 @@ +Subproject commit c85bada2a9c85bc80f4c1a6baa7cefb662013eb4