Skip to content

Commit

Permalink
first workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed May 11, 2024
1 parent 87a54aa commit 2f1dfbb
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "wamr"]
path = wamr
url = https://github.com/bytecodealliance/wasm-micro-runtime.git
1 change: 1 addition & 0 deletions wamr
Submodule wamr added at c85bad

0 comments on commit 2f1dfbb

Please sign in to comment.