Skip to content

Commit 0dc0684

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,28 @@ 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+
shell: bash
51+
run:
52+
MAKE="${PWD}/make" cargo test
53+
3454
rustfmt:
3555
name: Rustfmt
3656
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)