generate binaries #1413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Builds, tests & co | ||
on: | ||
push: | ||
paths: | ||
- 'src/**' | ||
- '!src/tools/**' | ||
- 'src_ext/**' | ||
- 'dune' | ||
- 'dune-project' | ||
- '*.opam' | ||
- 'Makefile*' | ||
- 'configure*' | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- '!src/tools/**' | ||
- 'src_ext/**' | ||
- 'dune' | ||
- 'dune-project' | ||
- '*.opam' | ||
- 'Makefile*' | ||
- 'configure*' | ||
- '.github/scripts/**' | ||
- '.github/workflows/main.yml' | ||
- 'tests/**' | ||
- '!tests/bench/**' | ||
- 'shell/' | ||
# paths-ignore: | ||
# - 'release/**' | ||
# - 'shell/**' | ||
# - 'admin-scripts/**' | ||
# - 'doc/**' | ||
# - 'CHANGES' | ||
# - 'LICENSE' | ||
# - 'CONTRIBUTING.md' | ||
# - 'master_changes.md' | ||
# - 'README.md' | ||
env: | ||
OPAMBSVERSION: 2.1.0 | ||
OPAMBSROOT: ~/.cache/.opam.cached | ||
OPAM12CACHE: ~/.cache/opam1.2/cache | ||
OPAM_REPO: https://github.com/ocaml/opam-repository.git | ||
OPAM_TEST_REPO_SHA: b251e0d9d0a8bcb0742d4d495c70f479effe16c2 | ||
OPAM_REPO_SHA: b251e0d9d0a8bcb0742d4d495c70f479effe16c2 | ||
SOLVER: | ||
CYGWIN_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/ | ||
CYGWIN_ROOT: D:\cygwin | ||
CYGWIN: winsymlinks:native | ||
CYGWIN_EPOCH: 3 | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
#### | ||
# Caches | ||
#### | ||
Analyse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: what are the labels | ||
env: | ||
LABEL: ${{ github.event.labels.name }} | ||
run: | | ||
echo ${{ github.event.labels.name }} | ||
echo "x$LABEL" | ||
- name: check pr binaries | ||
if: ${{ contains(github.event.*.labels.*.name, 'PR:BINARIES') }} | ||
run: echo "found!!!" | ||
- name: check bug | ||
if: ${{ contains(github.event.*.labels.*.name, 'bug') }} | ||
run: echo "found!!!" | ||
- name: current labels | ||
run: gh api --jq '.labels.[].name' /repos/rjbou/opam/pulls/${{ github.event.number }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: retrieve labels | ||
run: gh api --jq '.labels.[].name' /repos/rjbou/opam/pulls/${{ github.event.number }} > $LABELS | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: labels | ||
run: echo "w$LABELS" | ||
- name: labels | ||
if: contains("$LABELS", 'PR:BINARIES') | ||
Check failure on line 88 in .github/workflows/main.yml GitHub Actions / Builds, tests & coInvalid workflow file
|
||
run: echo "found!!!" | ||
- name: what are the labels | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: | | ||
echo "$GITHUB_CONTEXT" |