From 2f1dfbb8da6d0bd09214a85ed8289a4755c3249e Mon Sep 17 00:00:00 2001 From: Tomas Maly Date: Sat, 11 May 2024 21:55:38 +0200 Subject: [PATCH] first workflow --- .github/workflows/build.yml | 66 +++++++++++++++++++++++++++++++++++++ .gitmodules | 3 ++ wamr | 1 + 3 files changed, 70 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .gitmodules create mode 160000 wamr diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..abcb578 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,66 @@ +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: 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 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