Skip to content

Commit d36a954

Browse files
committed
New workflow for release
1 parent 3c9e0e2 commit d36a954

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release binaries
2+
3+
permissions: read-all
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
build-and-release:
13+
permissions:
14+
contents: write
15+
# Packages write permission required to create a release
16+
packages: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out repository code
20+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3
21+
22+
- name: "Run `bazel build`"
23+
run: |
24+
bazel build -c opt //tools:heir-opt //tools:heir-translate
25+
26+
- name: Ensure binaries can run
27+
shell: bash
28+
run: |
29+
bazel-bin/tools/heir-opt --help
30+
bazel-bin/tools/heir-translate --help
31+
32+
- name: GH Release
33+
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 #pin@v2.0.6
34+
with:
35+
files: |
36+
bazel-bin/tools/heir-opt
37+
bazel-bin/tools/heir-translate

0 commit comments

Comments
 (0)