-
-
Notifications
You must be signed in to change notification settings - Fork 26
ci: add build and startup smoke checks #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
nabobalis
wants to merge
4
commits into
aweeri:extremelywip
Choose a base branch
from
nabobalis:ci/extremelywip-build-and-smoke
base: extremelywip
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+163
−16
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| version: 2 | ||
| 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" | ||
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
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
| 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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.