Files
chatterino2/.github/workflows/build-freebsd.yml
T
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bf87302eb4 ci: bump vmactions/freebsd-vm from 1.5.2 to 1.5.3 (#7163)
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm)
from 1.5.2 to 1.5.3.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/83b151f58c6047089f4c80eb5ba2039d158ce093"><code>83b151f</code></a>
Update vmactions/freebsd-vm from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/e9ea2cef1135a17c880e9ed9956c983d58421ece"><code>e9ea2ce</code></a>
Generated from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/7f9ed700a9d1068fdd604600931b019737d9c783"><code>7f9ed70</code></a>
Bump versions from upstream releases</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/59e13a97c0c998e5f36c10a292ebc91115d531e7"><code>59e13a9</code></a>
Update vmactions/freebsd-vm from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/f28fc2743d290ed0b5020dca36fb2db6cc9753aa"><code>f28fc27</code></a>
Generated from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/c267d2fbb461730ef00253a968e161e09e955c43"><code>c267d2f</code></a>
Update version to v1.5.2</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/a56f3bab0836eed8238cd15313a0936e1e3cba4d"><code>a56f3ba</code></a>
Update vmactions/freebsd-vm from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/4a50e076570c30a595e08b5247f2df77ef296bd1"><code>4a50e07</code></a>
Generated from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/ff9b16bb634ef0047e04bf18b61f9ec311f8f544"><code>ff9b16b</code></a>
Update vmactions/freebsd-vm from base-vm</li>
<li><a
href="https://github.com/vmactions/freebsd-vm/commit/d6a581b740959e3b804b0711b8fc5200d63e9907"><code>d6a581b</code></a>
Generated from base-vm</li>
<li>Additional commits viewable in <a
href="https://github.com/vmactions/freebsd-vm/compare/v1.5.2...v1.5.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vmactions/freebsd-vm&package-manager=github_actions&previous-version=1.5.2&new-version=1.5.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually 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 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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-15 12:27:40 +00:00

73 lines
2.2 KiB
YAML

---
name: Build FreeBSD
on:
push:
branches:
- master
- "bugfix-release/*"
- "release/*"
pull_request:
workflow_dispatch:
merge_group:
concurrency:
group: build-freebsd-${{ github.ref }}
cancel-in-progress: true
env:
C2_ENABLE_LTO: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/bugfix-release/') || startsWith(github.ref, 'refs/heads/release/') }}
CHATTERINO_REQUIRE_CLEAN_GIT: On
jobs:
build-vm:
name: "Build FreeBSD"
runs-on: ubuntu-latest
env:
C2_ENABLE_LTO: false
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
fetch-depth: 0 # allows for tags access
- name: Get memory
id: mem
run: |
MEM_MB=$(awk '/MemTotal/ {print int($2/1024)}' /proc/meminfo)
echo "mem_mb=$MEM_MB" >> $GITHUB_OUTPUT
- name: Build using FreeBSD
uses: vmactions/freebsd-vm@v1.5.3
with:
envs: "C2_ENABLE_LTO"
release: "14.4"
arch: x86_64
mem: ${{ steps.mem.outputs.mem_mb }}
cache-after-prepare: true
prepare: |
pkg install -y boost-libs git libnotify qt6-base qt6-svg qt6-5compat qt6-imageformats qtkeychain-qt6 cmake pkgconf
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule init
git submodule update
mkdir build
cd build
c++ --version
cmake \
-DCMAKE_C_COMPILER="cc" \
-DCMAKE_CXX_COMPILER="c++" \
-DCMAKE_C_FLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " \
-DCMAKE_CXX_FLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " \
-DLINK_OPTIONS="-fstack-protector-strong" \
-DCMAKE_INSTALL_PREFIX="/usr/local" \
-DUSE_SYSTEM_QTKEYCHAIN="ON" \
-DCMAKE_BUILD_TYPE="release" \
-DCMAKE_EXPORT_COMPILE_COMMANDS="ON" \
-DSKIP_JSON_GENERATION="ON" \
..
cat compile_commands.json
make -j $(getconf _NPROCESSORS_ONLN)