Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed May 23, 2021
1 parent 3a4531c commit 6babf4a
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 53 deletions.
99 changes: 86 additions & 13 deletions .github/workflows/darwin-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- completed

jobs:
darwin-x64-yosys:
darwin-x64-python3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -19,30 +19,31 @@ jobs:
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-yosys
key: cache-sources-python3
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-yosys.tgz"
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-python3.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Build
run: ./builder.py build --arch=darwin-x64 --target=yosys --single --tar
run: ./builder.py build --arch=darwin-x64 --target=python3 --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('darwin-x64-yosys.tgz') != ''
if: hashFiles('darwin-x64-python3.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-darwin-x64
artifacts: "darwin-x64-yosys.tgz"
artifacts: "darwin-x64-python3.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
darwin-x64-python3:
darwin-x64-xdot:
runs-on: ubuntu-latest
needs: darwin-x64-python3
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -52,27 +53,95 @@ jobs:
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-python3
key: cache-sources-xdot
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-python3.tgz"
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-xdot.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Download darwin-x64-python3
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-python3.tgz" | tar xvfz -
- name: Build
run: ./builder.py build --arch=darwin-x64 --target=python3 --single --tar
run: ./builder.py build --arch=darwin-x64 --target=xdot --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('darwin-x64-python3.tgz') != ''
if: hashFiles('darwin-x64-xdot.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-darwin-x64
artifacts: "darwin-x64-python3.tgz"
artifacts: "darwin-x64-xdot.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
darwin-x64-graphviz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'yosyshq/oss-cad-suite-build'
- name: Cache sources
id: cache-sources
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-graphviz
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-graphviz.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Build
run: ./builder.py build --arch=darwin-x64 --target=graphviz --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('darwin-x64-graphviz.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-darwin-x64
artifacts: "darwin-x64-graphviz.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
darwin-x64-yosys:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'yosyshq/oss-cad-suite-build'
- name: Cache sources
id: cache-sources
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-yosys
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-yosys.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Build
run: ./builder.py build --arch=darwin-x64 --target=yosys --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('darwin-x64-yosys.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-darwin-x64
artifacts: "darwin-x64-yosys.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
darwin-x64-nextpnr-generic:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -1154,7 +1223,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
darwin-x64-default:
runs-on: ubuntu-latest
needs: [ darwin-x64-avy, darwin-x64-boolector, darwin-x64-dfu-util, darwin-x64-ecpdap, darwin-x64-ecpprog, darwin-x64-flask, darwin-x64-fujprog, darwin-x64-gtkwave, darwin-x64-icesprog, darwin-x64-icestorm, darwin-x64-iverilog, darwin-x64-litex, darwin-x64-mcy, darwin-x64-nextpnr-ecp5, darwin-x64-nextpnr-generic, darwin-x64-nextpnr-ice40, darwin-x64-nextpnr-machxo2, darwin-x64-nextpnr-nexus, darwin-x64-openfpgaloader, darwin-x64-openocd, darwin-x64-pono, darwin-x64-prjtrellis, darwin-x64-python-programmers, darwin-x64-python3, darwin-x64-sby, darwin-x64-sby-gui, darwin-x64-system-resources, darwin-x64-verilator, darwin-x64-yices, darwin-x64-yosys, darwin-x64-z3 ]
needs: [ darwin-x64-avy, darwin-x64-boolector, darwin-x64-dfu-util, darwin-x64-ecpdap, darwin-x64-ecpprog, darwin-x64-flask, darwin-x64-fujprog, darwin-x64-graphviz, darwin-x64-gtkwave, darwin-x64-icesprog, darwin-x64-icestorm, darwin-x64-iverilog, darwin-x64-litex, darwin-x64-mcy, darwin-x64-nextpnr-ecp5, darwin-x64-nextpnr-generic, darwin-x64-nextpnr-ice40, darwin-x64-nextpnr-machxo2, darwin-x64-nextpnr-nexus, darwin-x64-openfpgaloader, darwin-x64-openocd, darwin-x64-pono, darwin-x64-prjtrellis, darwin-x64-python-programmers, darwin-x64-python3, darwin-x64-sby, darwin-x64-sby-gui, darwin-x64-system-resources, darwin-x64-verilator, darwin-x64-xdot, darwin-x64-yices, darwin-x64-yosys, darwin-x64-z3 ]
steps:
- name: Get current date
id: date
Expand All @@ -1176,6 +1245,8 @@ jobs:
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-flask.tgz" | tar xvfz -
- name: Download darwin-x64-fujprog
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-fujprog.tgz" | tar xvfz -
- name: Download darwin-x64-graphviz
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-graphviz.tgz" | tar xvfz -
- name: Download darwin-x64-gtkwave
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-gtkwave.tgz" | tar xvfz -
- name: Download darwin-x64-icesprog
Expand Down Expand Up @@ -1218,6 +1289,8 @@ jobs:
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-system-resources.tgz" | tar xvfz -
- name: Download darwin-x64-verilator
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-verilator.tgz" | tar xvfz -
- name: Download darwin-x64-xdot
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-xdot.tgz" | tar xvfz -
- name: Download darwin-x64-yices
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-darwin-x64/darwin-x64-yices.tgz" | tar xvfz -
- name: Download darwin-x64-yosys
Expand Down
99 changes: 86 additions & 13 deletions .github/workflows/linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- completed

jobs:
linux-arm-yosys:
linux-arm-python3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -19,30 +19,31 @@ jobs:
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-yosys
key: cache-sources-python3
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-yosys.tgz"
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-python3.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Build
run: ./builder.py build --arch=linux-arm --target=yosys --single --tar
run: ./builder.py build --arch=linux-arm --target=python3 --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('linux-arm-yosys.tgz') != ''
if: hashFiles('linux-arm-python3.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-linux-arm
artifacts: "linux-arm-yosys.tgz"
artifacts: "linux-arm-python3.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
linux-arm-python3:
linux-arm-xdot:
runs-on: ubuntu-latest
needs: linux-arm-python3
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -52,27 +53,95 @@ jobs:
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-python3
key: cache-sources-xdot
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-python3.tgz"
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-xdot.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Download linux-arm-python3
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-python3.tgz" | tar xvfz -
- name: Build
run: ./builder.py build --arch=linux-arm --target=python3 --single --tar
run: ./builder.py build --arch=linux-arm --target=xdot --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('linux-arm-python3.tgz') != ''
if: hashFiles('linux-arm-xdot.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-linux-arm
artifacts: "linux-arm-python3.tgz"
artifacts: "linux-arm-xdot.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
linux-arm-graphviz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'yosyshq/oss-cad-suite-build'
- name: Cache sources
id: cache-sources
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-graphviz
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-graphviz.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Build
run: ./builder.py build --arch=linux-arm --target=graphviz --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('linux-arm-graphviz.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-linux-arm
artifacts: "linux-arm-graphviz.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
linux-arm-yosys:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'yosyshq/oss-cad-suite-build'
- name: Cache sources
id: cache-sources
uses: actions/cache@v2
with:
path: _sources
key: cache-sources-yosys
- name: Download previous build
run: |
URL="https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-yosys.tgz"
if wget --spider "${URL}" 2>/dev/null; then
wget -qO- "${URL}" | tar xvfz -
else
echo "Previous version not found in bucket"
fi
- name: Build
run: ./builder.py build --arch=linux-arm --target=yosys --single --tar
- uses: ncipollo/release-action@v1
if: hashFiles('linux-arm-yosys.tgz') != ''
with:
allowUpdates: True
prerelease: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
tag: bucket-linux-arm
artifacts: "linux-arm-yosys.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
linux-arm-nextpnr-generic:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -1223,7 +1292,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
linux-arm-default:
runs-on: ubuntu-latest
needs: [ linux-arm-avy, linux-arm-boolector, linux-arm-dfu-util, linux-arm-ecpdap, linux-arm-ecpprog, linux-arm-flask, linux-arm-fujprog, linux-arm-gtkwave, linux-arm-icesprog, linux-arm-icestorm, linux-arm-iverilog, linux-arm-litex, linux-arm-mcy, linux-arm-nextpnr-ecp5, linux-arm-nextpnr-generic, linux-arm-nextpnr-ice40, linux-arm-nextpnr-machxo2, linux-arm-nextpnr-nexus, linux-arm-openfpgaloader, linux-arm-openocd, linux-arm-pono, linux-arm-prjtrellis, linux-arm-python-programmers, linux-arm-python2, linux-arm-python3, linux-arm-sby, linux-arm-sby-gui, linux-arm-suprove, linux-arm-system-resources, linux-arm-verilator, linux-arm-yices, linux-arm-yosys, linux-arm-z3 ]
needs: [ linux-arm-avy, linux-arm-boolector, linux-arm-dfu-util, linux-arm-ecpdap, linux-arm-ecpprog, linux-arm-flask, linux-arm-fujprog, linux-arm-graphviz, linux-arm-gtkwave, linux-arm-icesprog, linux-arm-icestorm, linux-arm-iverilog, linux-arm-litex, linux-arm-mcy, linux-arm-nextpnr-ecp5, linux-arm-nextpnr-generic, linux-arm-nextpnr-ice40, linux-arm-nextpnr-machxo2, linux-arm-nextpnr-nexus, linux-arm-openfpgaloader, linux-arm-openocd, linux-arm-pono, linux-arm-prjtrellis, linux-arm-python-programmers, linux-arm-python2, linux-arm-python3, linux-arm-sby, linux-arm-sby-gui, linux-arm-suprove, linux-arm-system-resources, linux-arm-verilator, linux-arm-xdot, linux-arm-yices, linux-arm-yosys, linux-arm-z3 ]
steps:
- name: Get current date
id: date
Expand All @@ -1245,6 +1314,8 @@ jobs:
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-flask.tgz" | tar xvfz -
- name: Download linux-arm-fujprog
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-fujprog.tgz" | tar xvfz -
- name: Download linux-arm-graphviz
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-graphviz.tgz" | tar xvfz -
- name: Download linux-arm-gtkwave
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-gtkwave.tgz" | tar xvfz -
- name: Download linux-arm-icesprog
Expand Down Expand Up @@ -1291,6 +1362,8 @@ jobs:
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-system-resources.tgz" | tar xvfz -
- name: Download linux-arm-verilator
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-verilator.tgz" | tar xvfz -
- name: Download linux-arm-xdot
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-xdot.tgz" | tar xvfz -
- name: Download linux-arm-yices
run: wget -qO- "https://github.com/yosyshq/oss-cad-suite-build/releases/download/bucket-linux-arm/linux-arm-yices.tgz" | tar xvfz -
- name: Download linux-arm-yosys
Expand Down
Loading

0 comments on commit 6babf4a

Please sign in to comment.