From 586150bfc4df6e80bc254fe9edbe13a939afb1c4 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Sun, 17 Mar 2024 22:48:29 -0400 Subject: [PATCH] Test GitHub Actions workflow --- workflows/ci.yml | 26 ++++++++++++++++++++------ workflows/testfile_workflow | 0 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 workflows/testfile_workflow diff --git a/workflows/ci.yml b/workflows/ci.yml index 353563fd..7189c6d1 100644 --- a/workflows/ci.yml +++ b/workflows/ci.yml @@ -11,12 +11,26 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + + # 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: Setup Environment - run: sudo apt-get update && sudo apt-get install -y <依赖包名称> + # 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: Build - run: make + # Configure and Build tmux + - name: Configure and Build tmux + run: | + ./configure && make - - name: Test - run: make test + # Optionally, include additional steps for testing or installation + - name: Install tmux + run: | + sudo make install + + # Add additional steps for running tests if applicable. diff --git a/workflows/testfile_workflow b/workflows/testfile_workflow new file mode 100644 index 00000000..e69de29b