Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
452caf2
Update test.yml
a-masterov Nov 19, 2024
027a36d
Update test.yml
a-masterov Nov 19, 2024
46eb453
Update test.yml
a-masterov Nov 19, 2024
f30c31e
Update test.yml
a-masterov Nov 19, 2024
0eacde5
Create build.yml
a-masterov Nov 19, 2024
79f75bf
Update test.yml
a-masterov Nov 19, 2024
fe24396
Update test.yml
a-masterov Nov 19, 2024
0a5a698
Update build.yml
a-masterov Nov 19, 2024
eb4d590
Update test.yml
a-masterov Nov 19, 2024
de1ed87
Update test.yml
a-masterov Nov 19, 2024
cc7905e
Update test.yml
a-masterov Nov 19, 2024
4492b29
Update test.yml
a-masterov Nov 19, 2024
659f0c9
Update build.yml
a-masterov Nov 19, 2024
1afb3ec
Update build.yml
a-masterov Nov 19, 2024
2f579d4
Update build.yml
a-masterov Nov 19, 2024
587754c
Update build.yml
a-masterov Nov 19, 2024
e677b2c
Update build.yml
a-masterov Nov 19, 2024
f8cd576
Update build.yml
a-masterov Nov 19, 2024
efaa3ed
Update build.yml
a-masterov Nov 19, 2024
06861f5
Update build.yml
a-masterov Nov 19, 2024
ea7c58a
Update build.yml
a-masterov Nov 19, 2024
84d636b
Update build.yml
a-masterov Nov 19, 2024
8a35a71
Update build.yml
a-masterov Nov 19, 2024
19dc841
Update build.yml
a-masterov Nov 19, 2024
105f15d
Update build.yml
a-masterov Nov 19, 2024
4abe2b2
Update build.yml
a-masterov Nov 19, 2024
b070ebd
Update build.yml
a-masterov Nov 19, 2024
bde29ee
Update build.yml
a-masterov Nov 19, 2024
0ee9bc5
Update build.yml
a-masterov Nov 19, 2024
07c044d
Update build.yml
a-masterov Nov 19, 2024
bea62c1
Update build.yml
a-masterov Nov 19, 2024
973015c
Update build.yml
a-masterov Nov 19, 2024
00eda91
Update build.yml
a-masterov Nov 19, 2024
6bc45ed
Update build.yml
a-masterov Nov 19, 2024
e64b957
Update build.yml
a-masterov Nov 19, 2024
21c5e1b
Update test.yml
a-masterov Nov 19, 2024
d9e861d
Update build.yml
a-masterov Nov 19, 2024
d39ddcb
Update build.yml
a-masterov Nov 19, 2024
45ccc73
Update test.yml
a-masterov Nov 19, 2024
33105d0
Update build.yml
a-masterov Nov 19, 2024
20602cb
Update build.yml
a-masterov Nov 19, 2024
7169d8f
Update build.yml
a-masterov Nov 19, 2024
a79de10
Update build.yml
a-masterov Nov 19, 2024
fb27e33
Update build.yml
a-masterov Nov 19, 2024
c1031a3
Update build.yml
a-masterov Nov 20, 2024
0b1957f
Create cet.yml
a-masterov Dec 5, 2024
9c8af33
Update test.yml
a-masterov Dec 13, 2024
865a93f
Merge branch 'main' into test-fail
a-masterov Dec 13, 2024
870f97b
Update build.yml
a-masterov Dec 13, 2024
7dc2f8d
Update build.yml
a-masterov Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
workflow_call:
inputs:
build-type:
description: 'build type'
type: string
required: true
defaults:
run:
shell: bash -euxo pipefail {0}


jobs:

build:
strategy:
matrix:
state: [ lfc, nolfc ]
runs-on: "ubuntu-latest"
steps:
- name: uses-lfc
id: uselfc
run: echo value=${{ matrix.state == 'lfc' && true || false }} >> $GITHUB_OUTPUT
- name: echolfc
run: |
echo ${{ steps.uselfc.outputs.value }}
echo ${{inputs.build-type}}
- name: say
continue-on-error: ${{ matrix.state == 'lfc' && contains(inputs.build-type, 'debug')}}
run: echo ${{ matrix.state }}; [ ${{ matrix.state }} != "lfc" ]
1 change: 1 addition & 0 deletions .github/workflows/cet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
run: exit 0

- name: step2
if: false
if: ${{inputs.run_s2}}
run: exit 1

27 changes: 17 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ defaults:
run:
shell: bash -euxo pipefail {0}
jobs:
generate-a-secret-output:
build:
strategy:
matrix:
build-type: [release,debug]
uses: ./.github/workflows/build.yml
with:
build-type: ${{matrix.build-type}}

conclusion:
if: always()
needs: [build]
runs-on: ubuntu-latest
steps:
- id: sets-a-secret
name: Generate, mask, and output a secret
run: |
the_secret=$((RANDOM))
echo "::add-mask::$the_secret"
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT"
- name: Use that secret output (protected by a mask)
run: |
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}"
- name: Fail
if: |
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
run: exit 1