2022-05-27 04:05:17 -05:00
|
|
|
name: Emscripten Build
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
emcc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: mymindstorm/setup-emsdk@v11
|
2022-10-21 10:00:46 -05:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-27 04:05:17 -05:00
|
|
|
- name: Cache sources
|
|
|
|
id: cache-sources
|
2022-10-21 10:00:46 -05:00
|
|
|
uses: actions/cache@v3
|
2022-05-27 04:05:17 -05:00
|
|
|
with:
|
|
|
|
path: .
|
|
|
|
key: cache-yosys
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make config-emcc
|
2022-05-27 07:15:25 -05:00
|
|
|
make YOSYS_VER=latest
|
2022-10-21 10:00:46 -05:00
|
|
|
- uses: actions/upload-artifact@v3
|
2022-05-27 07:15:25 -05:00
|
|
|
with:
|
|
|
|
name: yosysjs
|
|
|
|
path: yosysjs-latest.zip
|