linux.yml 696 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Linux
  2. # Controls when the action will run. Triggers the workflow on push or pull request
  3. # events but only for the master branch
  4. on:
  5. push:
  6. branches: [ main ]
  7. pull_request:
  8. branches: [ main ]
  9. jobs:
  10. build:
  11. runs-on: ${{ matrix.os }}
  12. strategy:
  13. matrix:
  14. os: [ubuntu-18.04, ubuntu-20.04]
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Build iwasm
  18. run: |
  19. cd product-mini/platforms/linux
  20. mkdir build && cd build
  21. cmake ..
  22. make
  23. - name: Build wasm-c-api
  24. run: |
  25. cd samples/wasm-c-api
  26. mkdir build && cd build
  27. cmake ..
  28. make
  29. ./hello
  30. ./global
  31. ./callback