2024-03-18 01:43:06 +00:00
|
|
|
name: CI
|
2024-03-18 01:40:40 +00:00
|
|
|
|
2024-03-18 01:43:06 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2024-03-18 02:48:29 +00:00
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libevent-dev ncurses-dev gcc make pkg-config byacc autoconf automake
|
2024-03-18 01:43:06 +00:00
|
|
|
|
2024-03-18 02:48:29 +00:00
|
|
|
# Prepare for build (for version control source)
|
|
|
|
- name: Run autogen.sh (for version control)
|
|
|
|
run: |
|
|
|
|
sh autogen.sh || echo "Skipping autogen.sh for release tarball build"
|
2024-03-18 01:43:06 +00:00
|
|
|
|
2024-03-18 02:48:29 +00:00
|
|
|
# Configure and Build tmux
|
|
|
|
- name: Configure and Build tmux
|
|
|
|
run: |
|
|
|
|
./configure && make
|
2024-03-18 01:43:06 +00:00
|
|
|
|
2024-03-18 02:48:29 +00:00
|
|
|
# Optionally, include additional steps for testing or installation
|
|
|
|
- name: Install tmux
|
|
|
|
run: |
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
# Add additional steps for running tests if applicable.
|