Skip to content

generate binaries #1426

generate binaries

generate binaries #1426

Workflow file for this run

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: ret labels
shell: bash
id: labell
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cur_label=$(gh api --jq '.labels.[].name' /repos/rjbou/opam/pulls/${{ github.event.number }} | grep "PR:BINARIES")
echo $cur_label
echo "cur_label=${cur_label:-other}" >> $GITHUB_ENV
- name: labels
env:
OUTS: ${{ toJson(env) }}
run: |
echo "$OUTS"
echo ${{ env.cur_label }}
# - name: labels
# run: echo ${{ steps.labell.outputs.cur_label }}
# - name: labels
# if: contains(steps.labell.outputs.cur_label , 'PR:BINARIES')
# run: echo "found!!!"
- name: what are the labels
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"