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 eb1ad0c
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
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 ccache
- 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
shell: bash
run: |
cd wamr/wamr-compiler
ls -la . *
./build_llvm.py
- name: wamrc
shell: bash
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 eb1ad0c

Please sign in to comment.