Skip to content

Commit 270fcd5

Browse files
committed
compile make 4.4.1 from source and test against it
1 parent add04dd commit 270fcd5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,29 @@ jobs:
2929
- name: Install Rust (rustup)
3030
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
3131
shell: bash
32+
3233
- run: cargo test
3334

35+
# Compile it from source (temporarily)
36+
- name: Make GNU Make from source
37+
if: ${{ !startsWith(matrix.os, 'windows') }}
38+
env:
39+
VERSION: "4.4.1"
40+
shell: bash
41+
run: |
42+
wget -q "https://ftp.gnu.org/gnu/make/make-${VERSION}.tar.gz"
43+
tar zxf "make-${VERSION}.tar.gz"
44+
pushd "make-${VERSION}"
45+
./configure
46+
make
47+
popd
48+
cp -rp "make-${VERSION}/make" .
49+
- name: Test against GNU Make from source
50+
if: ${{ !startsWith(matrix.os, 'windows') }}
51+
shell: bash
52+
run:
53+
MAKE="${PWD}/make" cargo test
54+
3455
rustfmt:
3556
name: Rustfmt
3657
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)