Resolve a warning in launchable record build
command
This commit is contained in:
parent
f05ad373d8
commit
51e32523c2
@ -19,6 +19,13 @@ inputs:
|
|||||||
Test options that determine how tests are run.
|
Test options that determine how tests are run.
|
||||||
This value is used in the Launchable flavor.
|
This value is used in the Launchable flavor.
|
||||||
|
|
||||||
|
srcdir:
|
||||||
|
required: false
|
||||||
|
default: ${{ github.workspace }}
|
||||||
|
description: >-
|
||||||
|
Directory to (re-)checkout source codes. Launchable retrives the commit information
|
||||||
|
from the directory.
|
||||||
|
|
||||||
outputs: {} # nothing?
|
outputs: {} # nothing?
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
@ -26,7 +33,7 @@ runs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Launchable - record tests
|
- name: Launchable - record tests
|
||||||
working-directory: ${{ inputs.builddir }}
|
working-directory: ${{ inputs.srcdir }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
test_opts="$(echo ${{ inputs.test-opts }} | sed 's/=/:/g' | sed 's/ //g')"
|
test_opts="$(echo ${{ inputs.test-opts }} | sed 's/=/:/g' | sed 's/ //g')"
|
||||||
|
8
.github/actions/launchable/setup/action.yml
vendored
8
.github/actions/launchable/setup/action.yml
vendored
@ -14,6 +14,13 @@ inputs:
|
|||||||
Launchable token is needed if you want to run Launchable on your forked repository.
|
Launchable token is needed if you want to run Launchable on your forked repository.
|
||||||
See https://github.com/ruby/ruby/wiki/CI-Servers#launchable-ci for details.
|
See https://github.com/ruby/ruby/wiki/CI-Servers#launchable-ci for details.
|
||||||
|
|
||||||
|
srcdir:
|
||||||
|
required: false
|
||||||
|
default: ${{ github.workspace }}
|
||||||
|
description: >-
|
||||||
|
Directory to (re-)checkout source codes. Launchable retrives the commit information
|
||||||
|
from the directory.
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
enable-launchable:
|
enable-launchable:
|
||||||
description: "The boolean value indicating whether Launchable is enabled or not"
|
description: "The boolean value indicating whether Launchable is enabled or not"
|
||||||
@ -66,6 +73,7 @@ runs:
|
|||||||
|
|
||||||
- name: Set up Launchable
|
- name: Set up Launchable
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: ${{ inputs.srcdir }}
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
PATH=$PATH:$(python -msite --user-base)/bin
|
PATH=$PATH:$(python -msite --user-base)/bin
|
||||||
|
6
.github/actions/setup/directories/action.yml
vendored
6
.github/actions/setup/directories/action.yml
vendored
@ -44,6 +44,11 @@ inputs:
|
|||||||
description: >-
|
description: >-
|
||||||
If set to true, creates dummy files in build dir.
|
If set to true, creates dummy files in build dir.
|
||||||
|
|
||||||
|
fetch-depth:
|
||||||
|
required: false
|
||||||
|
default: '1'
|
||||||
|
description: The depth of commit history fetched from the remote repository
|
||||||
|
|
||||||
outputs: {} # nothing?
|
outputs: {} # nothing?
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
@ -79,6 +84,7 @@ runs:
|
|||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
with:
|
with:
|
||||||
path: ${{ inputs.srcdir }}
|
path: ${{ inputs.srcdir }}
|
||||||
|
fetch-depth: ${{ inputs.fetch-depth }}
|
||||||
|
|
||||||
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
|
8
.github/workflows/macos.yml
vendored
8
.github/workflows/macos.yml
vendored
@ -56,8 +56,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
sparse-checkout: /.github
|
sparse-checkout: /.github
|
||||||
# Set fetch-depth: 0 so that Launchable can receive commits information.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Install libraries
|
- name: Install libraries
|
||||||
uses: ./.github/actions/setup/macos
|
uses: ./.github/actions/setup/macos
|
||||||
@ -68,6 +66,8 @@ jobs:
|
|||||||
builddir: build
|
builddir: build
|
||||||
makeup: true
|
makeup: true
|
||||||
dummy-files: ${{ matrix.test_task == 'check' }}
|
dummy-files: ${{ matrix.test_task == 'check' }}
|
||||||
|
# Set fetch-depth: 0 so that Launchable can receive commits information.
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
- name: Run configure
|
- name: Run configure
|
||||||
run: ../src/configure -C --disable-install-doc
|
run: ../src/configure -C --disable-install-doc
|
||||||
@ -89,6 +89,7 @@ jobs:
|
|||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
|
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
|
||||||
|
srcdir: src
|
||||||
|
|
||||||
- name: Set extra test options
|
- name: Set extra test options
|
||||||
run: echo "TESTS=$TESTS ${{ matrix.test_opts }}" >> $GITHUB_ENV
|
run: echo "TESTS=$TESTS ${{ matrix.test_opts }}" >> $GITHUB_ENV
|
||||||
@ -118,9 +119,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# We need to configure the `build` directory because
|
# We need to configure the `build` directory because
|
||||||
# this composite action is executed in the default working directory.
|
# this composite action is executed in the default working directory.
|
||||||
report-path: build/launchable_reports.json
|
report-path: ../build/launchable_reports.json
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
test-opts: ${{ matrix.test_opts }}
|
test-opts: ${{ matrix.test_opts }}
|
||||||
|
srcdir: src
|
||||||
if: ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
|
if: ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
|
||||||
|
|
||||||
- uses: ./.github/actions/slack
|
- uses: ./.github/actions/slack
|
||||||
|
6
.github/workflows/ubuntu.yml
vendored
6
.github/workflows/ubuntu.yml
vendored
@ -69,6 +69,8 @@ jobs:
|
|||||||
builddir: build
|
builddir: build
|
||||||
makeup: true
|
makeup: true
|
||||||
dummy-files: ${{ matrix.test_task == 'check' }}
|
dummy-files: ${{ matrix.test_task == 'check' }}
|
||||||
|
# Set fetch-depth: 10 so that Launchable can receive commits information.
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
|
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
|
||||||
with:
|
with:
|
||||||
@ -100,6 +102,7 @@ jobs:
|
|||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
|
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
|
||||||
|
srcdir: src
|
||||||
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: >-
|
run: >-
|
||||||
@ -126,9 +129,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# We need to configure the `build` directory because
|
# We need to configure the `build` directory because
|
||||||
# this composite action is executed in the default working directory.
|
# this composite action is executed in the default working directory.
|
||||||
report-path: build/launchable_reports.json
|
report-path: ../build/launchable_reports.json
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
test-opts: ${{ matrix.configure }}
|
test-opts: ${{ matrix.configure }}
|
||||||
|
srcdir: src
|
||||||
if: ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
|
if: ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
|
||||||
|
|
||||||
- uses: ./.github/actions/slack
|
- uses: ./.github/actions/slack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user