Add config #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copied from https://github.com/bazel-contrib/rules-template (at hash 2154387cb9c634b68139f6e280dba10fc08e9f75) | |
# Available under Apache-2.0 license | |
# Copyright belongs to contributors of rules-template (see https://github.com/bazel-contrib/rules-template/graphs/contributors) | |
# Some modification where applied with are also available under Apache-2.0 license | |
# Cut a release whenever a new tag is pushed to the repo. | |
# You should use an annotated tag, like `git tag -a v1.2.3` | |
# and put the release notes into the commit message for the tag. | |
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Mount bazel caches | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/bazel | |
~/.cache/bazel-repo | |
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }} | |
restore-keys: bazel-cache- | |
- name: bazel build //... | |
env: | |
# Bazelisk will download bazel to here | |
XDG_CACHE_HOME: ~/.cache/bazel-repo | |
run: cd tests && bazelisk build --config=gcc11 //... | |
- name: Prepare release notes and artifacts | |
run: .github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: false | |
# Use GH feature to populate the changelog automatically | |
generate_release_notes: true | |
body_path: release_notes.txt | |
fail_on_unmatched_files: true | |
files: rules_qt6-*.tar.gz |