Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
yosupo06 committed Sep 25, 2023
1 parent aa3a26a commit f60bc7f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/diff-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
push:
branches:
- master
- test
pull_request:

jobs:
deploy:
uses: ./.github/workflows/generate.yml
with:
force-generate: true
force-generate: false
13 changes: 0 additions & 13 deletions .github/workflows/dispatch-generate.yml

This file was deleted.

36 changes: 27 additions & 9 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,36 @@ on:
description: Ignore cache and force generate
default: false
type: boolean
enable-gcc-ubuntu-generate:
description: Enable gcc-ubuntu-generate
default: true
type: boolean
enable-clang-mac-generate:
description: Enable clang-mac-generate
default: true
type: boolean
enable-mingw-windows-generate:
description: Enable mingw-windows-generate
default: true
type: boolean
workflow_call:
inputs:
force-generate:
required: true
default: false
type: boolean
enable-gcc-ubuntu-generate:
default: true
type: boolean
enable-clang-mac-generate:
default: true
type: boolean
enable-mingw-windows-generate:
default: true
type: boolean

jobs:
echo-test:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event.inputs.force-generate }}

gcc-ubuntu-generate:
if: ${{ inputs.enable-gcc-ubuntu-generate }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -36,7 +52,7 @@ jobs:
- name: Restore versions.json
uses: actions/cache/restore@v3
if: ${{ !github.event.inputs.force-generate }}
if: ${{ !inputs.force-generate }}
with:
path: versions.json
key: ${{ runner.os }}-versions-cache-
Expand All @@ -56,6 +72,7 @@ jobs:
key: ${{ runner.os }}-versions-cache-${{ hashFiles('versions.json') }}

clang-mac-generate:
if: ${{ inputs.enable-clang-mac-generate }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -71,7 +88,7 @@ jobs:
- name: Restore versions.json
uses: actions/cache/restore@v3
if: ${{ !github.event.inputs.force-generate }}
if: ${{ !inputs.force-generate }}
with:
path: versions.json
key: ${{ runner.os }}-versions-cache-
Expand All @@ -91,6 +108,7 @@ jobs:
key: ${{ runner.os }}-versions-cache-${{ hashFiles('versions.json') }}

mingw-windows-generate:
if: ${{ inputs.enable-enable-mingw-windows-generate }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -106,7 +124,7 @@ jobs:
- name: Restore versions.json
uses: actions/cache/restore@v3
if: ${{ !github.event.inputs.force-generate }}
if: ${{ !inputs.force-generate }}
with:
path: versions.json
key: ${{ runner.os }}-versions-cache-
Expand Down

0 comments on commit f60bc7f

Please sign in to comment.