Skip to content

Commit

Permalink
Add make build.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Jan 20, 2023
1 parent a4b3865 commit 6ac47b0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
description: "Package to build"
required: true
type: string
version:
description: "Version to build"
required: true
type: string
jobs:
gpg:
name: Build
Expand All @@ -19,11 +23,11 @@ jobs:
- name: Init Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Build
run: make -C pkgs/${{ inputs.package }}
run: make VERSION=${{ inputs.version }} -C pkgs/${{ inputs.package }}
- name: Upload Release
uses: ncipollo/release-action@v1
with:
tag: ${{ inputs.package }}
tag: ${{ inputs.package }}-${{ inputs.version }}
allowUpdates: true
artifacts: "pkgs/${{ inputs.package }}/${{ inputs.package }}-*.tar.xz"
artifacts: "pkgs/${{ inputs.package }}/${{ inputs.package }}-${{ inputs.version }}-*.tar.xz"
token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/gotip/goroot
/gotip/go-*
/go-tools/*.bz2
*/build/*
*/dist/*
*/deps/*
**/build/
**/dist/
**/deps/
14 changes: 14 additions & 0 deletions pkgs/make/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
VERSION ?= 4.4
NAME = make
SOURCE = https://ftpmirror.gnu.org/make/make-$(VERSION).tar.gz

include $(shell git rev-parse --show-toplevel)/pkgs/build.mk

configure:
./configure --prefix=/ --disable-rpath

build:
$(MAKE)

install:
$(MAKE) DESTDIR=$(DESTDIR) install

0 comments on commit 6ac47b0

Please sign in to comment.