Skip to content

Commit

Permalink
hax complete?
Browse files Browse the repository at this point in the history
  • Loading branch information
ddfisher committed Feb 13, 2025
1 parent cdbd18b commit 5904759
Showing 1 changed file with 62 additions and 62 deletions.
124 changes: 62 additions & 62 deletions .github/workflows/tmux-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,74 +12,74 @@ jobs:
- ${{ github.workspace }}:/workspace:rw,rshared

steps:
# - name: Setup repositories
# run: |
# # Update base repo URLs to vault.centos.org since CentOS 7 is EOL
# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Base.repo
# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo
#
# # Clean and update
# yum clean all
# yum makecache
# yum update -y
#
# - name: Install dependencies
# run: |
# yum install -y \
# gcc \
# make \
# automake \
# pkg-config \
# byacc \
# wget \
# tar \
# gzip \
# bzip2 \
# glibc-static
#
# - name: Build ncurses
# run: |
# wget https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz
# tar xzf ncurses-6.4.tar.gz
# cd ncurses-6.4
# ./configure --prefix=$HOME/local --with-shared --with-termlib --enable-pc-files --with-pkg-config-libdir=$HOME/local/lib/pkgconfig --without-tests --without-manpages
# make
# make install
# cd ..
#
# - name: Build libevent
# run: |
# wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
# tar xzf libevent-2.1.12-stable.tar.gz
# cd libevent-2.1.12-stable
# ./configure --prefix=$HOME/local --enable-shared --disable-openssl
# make
# make install
# cd ..
#
# - name: Download and extract tmux
# run: |
# wget https://github.com/tmux/tmux/releases/download/3.5a/tmux-3.5a.tar.gz
# tar xzf tmux-3.5a.tar.gz
#
# - name: Build tmux
# run: |
# cd tmux-3.5a
# PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig ./configure --prefix=$HOME/local
# make
# make install
# cd ..
- name: Setup repositories
run: |
# Update base repo URLs to vault.centos.org since CentOS 7 is EOL
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Base.repo
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo
# Clean and update
yum clean all
yum makecache
yum update -y
- name: Fake build for testing
- name: Install dependencies
run: |
cd $HOME
mkdir local
echo "foo" > local/output
yum install -y \
gcc \
make \
automake \
pkg-config \
byacc \
wget \
tar \
gzip \
bzip2 \
glibc-static
- name: Build ncurses
run: |
wget https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz
tar xzf ncurses-6.4.tar.gz
cd ncurses-6.4
./configure --prefix=$HOME/local --with-shared --with-termlib --enable-pc-files --with-pkg-config-libdir=$HOME/local/lib/pkgconfig --without-tests --without-manpages
make
make install
cd ..
- name: Build libevent
run: |
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar xzf libevent-2.1.12-stable.tar.gz
cd libevent-2.1.12-stable
./configure --prefix=$HOME/local --enable-shared --disable-openssl
make
make install
cd ..
- name: Download and extract tmux
run: |
wget https://github.com/tmux/tmux/releases/download/3.5a/tmux-3.5a.tar.gz
tar xzf tmux-3.5a.tar.gz
- name: Build tmux
run: |
cd tmux-3.5a
PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig ./configure --prefix=$HOME/local
make
make install
cd ..
# - name: Fake build for testing
# run: |
# cd $HOME
# mkdir local
# echo "foo" > local/output

- name: Bundle and upload
run: |
cd $HOME
tar -czf tmux-arm64.tar.gz local
mv tmux-arm64.tar.gz /workspace/
nsenter -t 1 -m -u -n -i sh -c "GH_TOKEN=${{ github.token }} gh release upload --clobber --repo warpdotdev/portable-tmux v0.0.1-testing ${{ github.workspace }}/tmux-arm64.tar.gz"
nsenter -t 1 -m -u -n -i sh -c "GH_TOKEN=${{ github.token }} gh release upload --clobber --repo warpdotdev/portable-tmux testing ${{ github.workspace }}/tmux-arm64.tar.gz"

0 comments on commit 5904759

Please sign in to comment.