mirror of
https://github.com/tmux/tmux.git
synced 2026-10-07 18:24:22 +00:00
Forks are just wasting CI cycles spinning actions which are probably not looked at. Also avoid locking issues and PRs on any forks with upstream's policies.
89 lines
2.0 KiB
YAML
89 lines
2.0 KiB
YAML
name: 'Run Tests'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '33 3 * * *'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: tmux-tests
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
regress:
|
|
name: ${{ matrix.name }}
|
|
runs-on: ${{ matrix.runner }}
|
|
if: github.repository == 'tmux/tmux'
|
|
timeout-minutes: 45
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- name: ubuntu-24.04-x64
|
|
runner: ubuntu-24.04
|
|
make: make
|
|
configure: --enable-utf8proc --enable-asan
|
|
#- name: ubuntu-24.04-arm64
|
|
# runner: ubuntu-24.04-arm
|
|
# make: make
|
|
# configure: --enable-utf8proc --enable-asan
|
|
- name: macos-26-arm64
|
|
runner: macos-26
|
|
make: gmake
|
|
configure: --enable-utf8proc --enable-asan
|
|
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
autoconf \
|
|
automake \
|
|
bison \
|
|
build-essential \
|
|
libevent-dev \
|
|
libncurses-dev \
|
|
libutf8proc-dev \
|
|
pkg-config
|
|
|
|
- name: dependencies
|
|
if: runner.os == 'macOS'
|
|
run: |
|
|
brew install \
|
|
autoconf \
|
|
automake \
|
|
bison \
|
|
libevent \
|
|
jemalloc \
|
|
make \
|
|
ncurses \
|
|
utf8proc \
|
|
pkg-config
|
|
|
|
- name: build
|
|
run: |
|
|
sh autogen.sh
|
|
./configure ${{ matrix.configure }}
|
|
${{ matrix.make }} -j"$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
- name: test
|
|
run: |
|
|
cd regress
|
|
${{ matrix.make }}
|
|
|
|
- name: logs
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: regress-logs-${{ matrix.name }}
|
|
path: regress/logs/*.log
|
|
if-no-files-found: ignore
|