forked from google/heir
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.44 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Nightly release
permissions: read-all
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build-and-test:
permissions:
contents: write
# Packages write permission required to update a release
packages: write
runs-on:
labels: ubuntu-22.04-8core
steps:
- name: Check out repository code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3
- name: "Run `bazel build`"
run: |
bazel build -c opt //tools:all
- name: Ensure binaries can run
shell: bash
run: |
bazel-bin/tools/heir-opt --help
bazel-bin/tools/heir-translate --help
bazel-bin/tools/heir-lsp --help
[ -f bazel-bin/external/edu_berkeley_abc/abc ]
- name: Delete previous existing nightly tag and release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh release view "nightly" && gh release delete "nightly" -y --cleanup-tag
- name: GH Release
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 #[email protected]
with:
prerelease: true
tag_name: nightly
files: |
bazel-bin/tools/heir-opt
bazel-bin/tools/heir-translate
bazel-bin/tools/heir-lsp
bazel-bin/external/edu_berkeley_abc/abc
lib/Transforms/YosysOptimizer/yosys/techmap.v