waveterm/.github/workflows/testdriver-build.yml
dependabot[bot] 12350d2eb2
Bump mlugg/setup-zig from 1 to 2 in /.github/workflows (#2166)
Bumps [mlugg/setup-zig](https://github.com/mlugg/setup-zig) from 1 to 2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mlugg/setup-zig/releases">mlugg/setup-zig's
releases</a>.</em></p>
<blockquote>
<h2>v2.0.0</h2>
<ul>
<li>Support getting Zig version from <code>build.zig.zon</code></li>
<li>Add option to customize cache key to work around matrix
deficiencies</li>
<li>Clear Zig cache directory when it grows too large</li>
</ul>
<h2>v1.2.2</h2>
<blockquote>
<p>[!WARNING]
Assuming no serious bugs, this will be the last v1 release. <strong>I
highly recommend upgrading to v2.</strong></p>
</blockquote>
<ul>
<li>Update mirror list</li>
<li>Update dependencies
<ul>
<li>This includes the cache service, resolving <a
href="https://redirect.github.com/mlugg/setup-zig/issues/36">#36</a>;
sorry about that one!</li>
</ul>
</li>
<li>Validate minisign &quot;trusted comment&quot;</li>
</ul>
<h2>v1.2.1</h2>
<ul>
<li>Fix <code>.zip</code> tarball extraction</li>
<li>Add two new mirrors</li>
<li>Don't attempt to cache global Zig cache if it doesn't exist (<a
href="https://redirect.github.com/mlugg/setup-zig/issues/8">#8</a>)</li>
</ul>
<h2>v1.2.0</h2>
<ul>
<li>Add the <code>use-cache</code> option to disable preservation of the
Zig global cache directory</li>
</ul>
<h2>v1.1.1</h2>
<ul>
<li>Fix the restriction of <code>mirror</code> to not be
<code>ziglang.org</code> (I forgot to implement it before)</li>
<li>Append query parameter to downloads so mirrors can know that traffic
is coming from Actions</li>
<li>Add new mirror (thanks <a
href="https://github.com/hryx"><code>@​hryx</code></a>!)</li>
</ul>
<h2>v1.1.0</h2>
<ul>
<li>Support looking up Mach nominated versions, e.g.
<code>2024.5.0-mach</code></li>
<li>Support overriding download mirror</li>
</ul>
<p>See README.md for details.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="aa9ad5c14e"><code>aa9ad5c</code></a>
README: reference setup-zig@v2</li>
<li><a
href="851448343a"><code>8514483</code></a>
chore: Temporarily remove mirror (maintenance)</li>
<li><a
href="915f70607f"><code>915f706</code></a>
post: harden totalSize against fs races</li>
<li><a
href="9d38a7af8e"><code>9d38a7a</code></a>
minisign: fix typo</li>
<li><a
href="c912213482"><code>c912213</code></a>
Update machengine mirror ownership info</li>
<li><a
href="e1d6dd251f"><code>e1d6dd2</code></a>
Support Mach nominated versions in <code>build.zig.zon</code></li>
<li><a
href="9ac9efd667"><code>9ac9efd</code></a>
Clear Zig cache directory when it grows too large</li>
<li><a
href="0a889b2ab1"><code>0a889b2</code></a>
Update <code>@​actions/cache</code> to 4.0.2</li>
<li><a
href="0f2d1f2660"><code>0f2d1f2</code></a>
Validate trusted comment in minisign signature</li>
<li><a
href="806c1bbc96"><code>806c1bb</code></a>
Add option to customize cache key</li>
<li>Additional commits viewable in <a
href="https://github.com/mlugg/setup-zig/compare/v1...v2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mlugg/setup-zig&package-manager=github_actions&previous-version=1&new-version=2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-19 11:34:16 -07:00

82 lines
2.5 KiB
YAML

name: TestDriver.ai Build
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
pull_request:
# branches:
# - main
# paths-ignore:
# - "docs/**"
# - ".storybook/**"
# - ".vscode/**"
# - ".editorconfig"
# - ".gitignore"
# - ".prettierrc"
# - ".eslintrc.js"
# - "**/*.md"
types:
- opened
- synchronize
- reopened
- ready_for_review
schedule:
- cron: 0 21 * * *
workflow_dispatch: null
env:
GO_VERSION: "1.23"
NODE_VERSION: 22
permissions:
contents: read # To allow the action to read repository contents
pull-requests: write # To allow the action to create/update pull request comments
jobs:
build_and_upload:
name: Build for TestDriver.ai
runs-on: windows-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v5
# General build dependencies
- uses: actions/setup-go@v5
with:
go-version: ${{env.GO_VERSION}}
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install Yarn
uses: nick-fields/retry@v3
with:
command: |
corepack enable
yarn install
timeout_minutes: 5
max_attempts: 3
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Zig
uses: mlugg/setup-zig@v2
- name: Build
run: task package
env:
USE_SYSTEM_FPM: true # Ensure that the installed version of FPM is used rather than the bundled one.
CSC_IDENTITY_AUTO_DISCOVERY: false # disable codesign
shell: powershell # electron-builder's Windows code signing package has some compatibility issues with pwsh, so we need to use Windows Powershell
# Upload .exe as an artifact
- name: Upload .exe artifact
id: upload
uses: actions/upload-artifact@v4
with:
name: windows-exe
path: make/*.exe