ci(krew): fix release-bot tag detection and add manual dispatch #689
This file contains hidden or 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
| name: ci-flow | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - "releases/*" | |
| # tags-ignore: | |
| # - "[0-9]+.[0-9]+.[0-9]+*" | |
| permissions: | |
| contents: read | |
| env: | |
| SCCACHE_GHA_ENABLED: "true" | |
| RUSTC_WRAPPER: "sccache" | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os.imageName }} | |
| strategy: | |
| matrix: | |
| os: | |
| - imageName: ubuntu-latest | |
| - imageName: macOS-latest | |
| # - imageName: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - uses: jdx/mise-action@v4 | |
| with: | |
| cache: false | |
| cache_save: false | |
| - run: mise run ci | |
| # for list of xcode sdk see https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#xcode | |
| # DEVELOPER_DIR: "/Applications/Xcode_11.app/Contents/Developer" | |
| integration: | |
| # Integration tests are linux only | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: nolar/setup-k3d-k3s@v1 | |
| with: | |
| # version: v1.20 | |
| # k3d-kube | |
| k3d-name: kube | |
| # Used to avoid rate limits when fetching the releases from k3s repo. | |
| # Anonymous access is limited to 60 requests / hour / worker | |
| # github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: mozilla-actions/sccache-action@v0.0.10 | |
| - uses: jdx/mise-action@v4 | |
| - name: Run on k3d | |
| run: cargo run |