Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this will work until it lands in the default branch.

updates:
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "main"
schedule:
interval: "weekly"
# one PR for all action bumps instead of one per action
groups:
actions:
patterns: ["*"]
commit-message:
prefix: "ci"
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

Expand All @@ -34,7 +34,7 @@ jobs:
run: make linux

- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: TLEscope-Linux-Portable
path: dist/TLEscope-Linux-Portable/
Expand All @@ -45,12 +45,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Setup ARM64 Cross-Compile
uses: cyberjunk/gha-ubuntu-cross@v5
uses: cyberjunk/gha-ubuntu-cross@e4dbbe43513699c9007d69f22dc429e8c1912b23 # v5
with:
arch: arm64

Expand All @@ -71,7 +71,7 @@ jobs:
DIST_LINUX=dist/TLEscope-Linux-arm64-Portable

- name: Upload Linux ARM64 Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: TLEscope-Linux-arm64-Portable
path: dist/TLEscope-Linux-arm64-Portable/
Expand All @@ -85,12 +85,12 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Setup MSYS2 (MinGW Environment)
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
with:
msystem: MINGW64
update: true
Expand All @@ -117,14 +117,14 @@ jobs:
run: make win-installer MINGW_PREFIX=/mingw64

- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: TLEscope-Win-Portable
path: dist/TLEscope-Win-Portable/
retention-days: 14

- name: Upload Windows Installer Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: TLEscope-Installer
path: dist/TLEscope-Installer.exe
Expand All @@ -138,12 +138,12 @@ jobs:
shell: msys2 {0}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Setup MSYS2 (MinGW Environment)
uses: msys2/setup-msys2@v2
uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
with:
msystem: CLANGARM64
update: true
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
run: make windows-arm64

- name: Upload Windows ARM64 Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: TLEscope-Win-arm64-Portable
path: dist/TLEscope-Win-arm64-Portable/
Expand All @@ -188,10 +188,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Download Artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: artifacts

Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:

- name: Update Nightly Release
if: startsWith(github.ref, 'refs/heads/')
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
with:
tag_name: nightly
name: "Nightly Build"
Expand All @@ -247,7 +247,7 @@ jobs:

- name: Publish Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
with:
generate_release_notes: true
files: |
Expand Down
134 changes: 134 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
name: CI

# Both trigger lists below name the active development branch; that is the
# only thing to change if it is ever renamed or replaced by main.
on:
workflow_dispatch:
push:
branches: ["extremelywip"]
paths-ignore:
- "README.md"
- "ROADMAP.md"
- "CONTRIBUTING.md"
pull_request:
branches: ["extremelywip"]
paths-ignore:
- "README.md"
- "ROADMAP.md"
- "CONTRIBUTING.md"

permissions:
contents: read

jobs:
# Linux build coverage comes from smoke-linux, which runs `make linux`
# itself before launching the binary.
build-windows:
name: Build Windows x86_64
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Set up MSYS2
uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0
with:
msystem: MINGW64
update: true
install: >-
make
git
mingw-w64-x86_64-gcc
mingw-w64-x86_64-curl
mingw-w64-x86_64-ngtcp2
mingw-w64-x86_64-nghttp3
mingw-w64-x86_64-zstd
mingw-w64-x86_64-libssh2
mingw-w64-x86_64-openssl
mingw-w64-x86_64-brotli
mingw-w64-x86_64-libpsl
mingw-w64-x86_64-libidn2
mingw-w64-x86_64-libunistring
mingw-w64-x86_64-libiconv
mingw-w64-x86_64-pkgconf

- name: Build
run: make windows MINGW_PREFIX=/mingw64 PKG_CONFIG_WIN=pkg-config

build-macos:
name: Build macOS ${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15-intel
arch: Intel
expect: x86_64
- runner: macos-15
arch: Apple Silicon
expect: arm64
env:
MACOSX_DEPLOYMENT_TARGET: "11.0"
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Build
run: make macos

- name: Verify binary architecture
run: |
file bin/TLEscope-macos
file bin/TLEscope-macos | grep -q "${{ matrix.expect }}"

smoke-linux:
name: Linux startup smoke test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive

- name: Install build and Xvfb dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
g++ make xvfb xauth \
libasound2-dev libx11-dev libxrandr-dev libxi-dev \
libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev \
libwayland-dev libxkbcommon-dev libcurl4-openssl-dev

- name: Build Linux application
run: make linux

- name: Verify application survives startup
working-directory: dist/TLEscope-Linux-Portable
env:
LIBGL_ALWAYS_SOFTWARE: "1"
run: |
mkdir -p "$RUNNER_TEMP/tlescope-home"
set +e
HOME="$RUNNER_TEMP/tlescope-home" \
timeout 10s xvfb-run -a -s "-screen 0 1280x720x24" \
./TLEscope > "$RUNNER_TEMP/tlescope-smoke.log" 2>&1
status=$?
set -e

cat "$RUNNER_TEMP/tlescope-smoke.log"

if [ "$status" -eq 124 ]; then
echo "TLEscope stayed running for the 10-second smoke-test window."
exit 0
fi

echo "TLEscope exited before the smoke-test window completed (status $status)." >&2
exit 1