Test GitHub Actions workflow

This commit is contained in:
Jia Hu 2024-03-17 22:48:29 -04:00
parent 67a4cf7955
commit 586150bfc4
2 changed files with 20 additions and 6 deletions

View File

@ -12,11 +12,25 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Environment
run: sudo apt-get update && sudo apt-get install -y <依赖包名称>
# 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
- name: Build
run: make
# 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"
- name: Test
run: make test
# Configure and Build tmux
- name: Configure and Build tmux
run: |
./configure && make
# Optionally, include additional steps for testing or installation
- name: Install tmux
run: |
sudo make install
# Add additional steps for running tests if applicable.

View File