Skip to content

Commit

Permalink
Generate a source package with make dist.
Browse files Browse the repository at this point in the history
Also switch to using `make distcheck` rather than doing the same thing
manually.
  • Loading branch information
fragglet committed Apr 20, 2024
1 parent e211595 commit 25d68ea
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,34 @@ jobs:
- name: make check
run: make check

- name: autotools dist check
- name: autotools distcheck
if: runner.os == 'Linux'
run: |
# This checks we can go through the entire process of generating
# a distribution package with autotools, and that the package can
# be built and installed successfully.
make distdir distdir=distdir
cd distdir
./configure
make -j4
make install DESTDIR=/tmp/asdfghj
make -j8 distcheck
- name: Build source package
if: runner.os == 'Linux'
run: |
make dist
mkdir srcdist
mv *.tar.gz srcdist/
- name: Build package (Windows)
if: runner.os == 'Windows'
run: |
cd pkg/win32
make
- name: Upload source package
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
path: "srcdist"
name: sdl-sopwith-src-${{steps.version.outputs.VERSION}}

- name: Upload build (Windows)
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 25d68ea

Please sign in to comment.