https://github.com/ollionorg/datapipes-build-harness-extensions
https://github.com/ollionorg/datapipes-build-harness-extensions
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ollionorg/datapipes-build-harness-extensions
- Owner: ollionorg
- Created: 2022-02-18T06:07:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-25T08:01:02.000Z (about 2 years ago)
- Last Synced: 2025-04-12T23:47:05.087Z (6 months ago)
- Language: Makefile
- Size: 17.6 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Extensions to `build-harness`
This repo is structured just like `build-harness`, and is pulled in via:
```BUILD_HARNESS_EXTENSIONS_PATH```
In order to use the build harness and extensions, make yourself a [token](https://github.com/settings/tokens) that at least has `repo` access, and add the following to your `Makefile`:
```
# GITHUB_USER containing '@' char must be escaped with '%40'
GITHUB_USER := $(shell echo $(GITHUB_USER) | sed 's/@/%40/g')
GITHUB_TOKEN ?=-include $(shell [ -f ".build-harness-bootstrap" ] || curl --fail -sSL -o .build-harness-bootstrap -H "Authorization: token $(GITHUB_TOKEN)" -H "Accept: application/vnd.github.v3.raw" "https://raw.github.com/cldcvr/datapipes-build-harness-extensions/main/templates/Makefile.build-harness-bootstrap"; echo .build-harness-bootstrap)
```Some OSes seem to have trouble with the V3 API for github - here is an alternate invocation that uses the V4 API:
```
-include $(shell [ -f ".build-harness-bootstrap" ] || curl --fail -H 'Authorization: token ${GITHUB_TOKEN}' -H 'Accept: application/vnd.github.v4.raw' -L https://api.github.com/repos/cldcvr/datapipes-build-harness-extensions-test/contents/templates/Makefile.build-harness-bootstrap -o .build-harness-bootstrap; echo .build-harness-bootstrap)
```