Skip to content

Commit

Permalink
trying fix for maintainer
Browse files Browse the repository at this point in the history
  • Loading branch information
nbingham1 committed Sep 23, 2024
1 parent fa1f906 commit f1e2699
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ jobs:
- name: Build binary on Linux
if: matrix.os == 'ubuntu-latest'
run: |
make linux
make linux MAINTAINER_NAME="$MAINTAINER_NAME" MAINTAINER_EMAIL="$MAINTAINER_EMAIL"
shell: bash
env:
MAINTAINER_NAME: ${{ vars.MAINTAINER_NAME }}
MAINTAINER_EMAIL: ${{ vars.MAINTAINER_EMAIL }}

- name: Build binary on macOS
if: matrix.os == 'macos-latest'
Expand All @@ -86,3 +89,21 @@ jobs:
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.LOOM_RELEASE }}

- name: Get Latest Release Upload URL
if: github.event_name != 'release'
run: |
upload_url="$(curl -sL https://api.github.com/repos/broccolimicro/loom/releases | jq -r 'map(select(.prerelease)) | first | .upload_url')"
echo UPLOAD_URL=$upload_url >> $GITHUB_ENV
shell: bash

- name: Upload Latest Release Asset
if: github.event_name != 'release'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ${{ matrix.from }}
asset_name: ${{ matrix.to }}
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.LOOM_RELEASE }}
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ else
UNAME_S := $(shell uname -s)
endif


# Use + instead of spaces in the below list
LIBS = \
lib/common \
Expand Down Expand Up @@ -37,6 +36,9 @@ LIBS = \
lib/interpret_chp \
bin/ckt

MAINTAINER_NAME = $(shell git config user.name)
MAINTAINER_EMAIL = $(shell git config user.email)

all: lib

linux: lib
Expand All @@ -51,7 +53,7 @@ linux: lib
echo "Priority: optional" >> lm-linux/DEBIAN/control
echo "Architecture: amd64" >> lm-linux/DEBIAN/control
dpkg-shlibdeps -O lm-linux/usr/local/bin/lm | sed 's/.*Depends=/Depends: /g' >> lm-linux/DEBIAN/control
git config user.email | xargs -I{} echo "Maintainer: Edward Bingham <{}>" >> lm-linux/DEBIAN/control
echo "Maintainer: $(MAINTAINER_NAME) <$(MAINTAINER_EMAIL)>" >> lm-linux/DEBIAN/control
echo "Description: Loom" >> lm-linux/DEBIAN/control
echo " A programming language for quasi-delay insensitive asynchronous circuits" >> lm-linux/DEBIAN/control
dpkg-deb --build --root-owner-group lm-linux
Expand Down

0 comments on commit f1e2699

Please sign in to comment.