Skip to content

Commit

Permalink
try autoconf on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Aug 6, 2023
1 parent 705b541 commit fa83e10
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-upstream-gh-xz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ jobs:
perl Makefile.PL && make
- name: Test
run: make test TEST_VERBOSE=1
run: make test
53 changes: 26 additions & 27 deletions .github/workflows/macos-upstream-gh-xz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ jobs:
with:
# NOTE: path doesn't expand variables!
path: /home/runner/upstream-lzma-install
# path: /home/runner/upstream-lzma-install-${{ matrix.lzma-version }}
key: ${{ runner.os }}-lzma-${{ matrix.lzma-version }}

# # Install Autotools on Linux
# - name: Install autogen Dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y autoconf automake build-essential po4a autopoint gcc-multilib doxygen
# Install Autotools on Mac
- name: Install Dependencies
if: ${{ matrix.os == 'macos-latest'
run: brew install autoconf automake libtool po4a doxygen

- name: Checkout upstream lzma ${{matrix.lzma-version}}
if: steps.cache-lzma.outputs.cache-hit != 'true'
Expand All @@ -72,29 +70,30 @@ jobs:
path: ${{ env.lzma-source }}

# Configure-based build
# - name: Build lzma ${{matrix.lzma-version}}
# run: |
# # Run autogen.sh script if not already run
# if [ ! -f configure ]
# then
# ./autogen.sh
# fi
# ./configure --prefix ${{ env.lzma-install }}
# make
# make check
# make install
# working-directory: ${{ env.lzma-source }}

# CMake-based build
- name: Build lzma ${{matrix.lzma-version}}
if: steps.cache-lzma.outputs.cache-hit != 'true'
run: |
mkdir ${HOME}/build-xz
cd ${HOME}/build-xz
cmake ${{ env.lzma-source }}/CMakeLists.txt -B . --install-prefix ${{ env.lzma-install }} -DBUILD_SHARED_LIBS=ON
cmake --build .
cmake --install .
rm -fr ${HOME}/build-xz
# Run autogen.sh script if not already run
if [ ! -f configure ]
then
./autogen.sh
fi
./configure --prefix ${{ env.lzma-install }}
make
make check
make install
working-directory: ${{ env.lzma-source }}

# # CMake-based build
# - name: Build lzma ${{matrix.lzma-version}}
# if: steps.cache-lzma.outputs.cache-hit != 'true'
# run: |
# mkdir ${HOME}/build-xz
# cd ${HOME}/build-xz
# cmake ${{ env.lzma-source }}/CMakeLists.txt -B . --install-prefix ${{ env.lzma-install }} -DBUILD_SHARED_LIBS=ON
# cmake --build .
# cmake --install .
# rm -fr ${HOME}/build-xz

- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
Expand All @@ -113,4 +112,4 @@ jobs:
perl Makefile.PL && make
- name: Test
run: make test TEST_VERBOSE=1
run: make test

0 comments on commit fa83e10

Please sign in to comment.