mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-04 14:09:14 +00:00
Fix doc CI and clean workflows
This commit is contained in:
parent
a8cfc0cc2c
commit
d175db8f5b
6
.github/workflows/cifuzz.yml
vendored
6
.github/workflows/cifuzz.yml
vendored
@ -8,21 +8,21 @@ jobs:
|
|||||||
Fuzzing:
|
Fuzzing:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build Fuzzers
|
- name: Build fuzzers
|
||||||
id: build
|
id: build
|
||||||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
|
||||||
with:
|
with:
|
||||||
oss-fuzz-project-name: 'fmt'
|
oss-fuzz-project-name: 'fmt'
|
||||||
dry-run: false
|
dry-run: false
|
||||||
language: c++
|
language: c++
|
||||||
- name: Run Fuzzers
|
- name: Run fuzzers
|
||||||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
|
||||||
with:
|
with:
|
||||||
oss-fuzz-project-name: 'fmt'
|
oss-fuzz-project-name: 'fmt'
|
||||||
fuzz-seconds: 300
|
fuzz-seconds: 300
|
||||||
dry-run: false
|
dry-run: false
|
||||||
language: c++
|
language: c++
|
||||||
- name: Upload Crash
|
- name: Upload crash
|
||||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||||
if: failure() && steps.build.outcome == 'success'
|
if: failure() && steps.build.outcome == 'success'
|
||||||
with:
|
with:
|
||||||
|
6
.github/workflows/doc.yml
vendored
6
.github/workflows/doc.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||||
|
|
||||||
- name: Add ubuntu mirrors
|
- name: Add Ubuntu mirrors
|
||||||
run: |
|
run: |
|
||||||
# Github Actions caching proxy is at times unreliable
|
# Github Actions caching proxy is at times unreliable
|
||||||
# see https://github.com/actions/runner-images/issues/7048
|
# see https://github.com/actions/runner-images/issues/7048
|
||||||
@ -21,7 +21,7 @@ jobs:
|
|||||||
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
|
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
|
||||||
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list
|
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create build environment
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install doxygen
|
sudo apt install doxygen
|
||||||
@ -34,4 +34,4 @@ jobs:
|
|||||||
KEY: ${{secrets.KEY}}
|
KEY: ${{secrets.KEY}}
|
||||||
run: |
|
run: |
|
||||||
cmake $GITHUB_WORKSPACE
|
cmake $GITHUB_WORKSPACE
|
||||||
$GITHUB_WORKSPACE/support/mkdocs deploy dev -p
|
$GITHUB_WORKSPACE/support/mkdocs deploy dev
|
||||||
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -77,7 +77,7 @@ jobs:
|
|||||||
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
||||||
if: ${{ matrix.cxx == 'g++-11' }}
|
if: ${{ matrix.cxx == 'g++-11' }}
|
||||||
|
|
||||||
- name: Add ubuntu mirrors
|
- name: Add Ubuntu mirrors
|
||||||
run: |
|
run: |
|
||||||
# Github Actions caching proxy is at times unreliable
|
# Github Actions caching proxy is at times unreliable
|
||||||
# see https://github.com/actions/runner-images/issues/7048
|
# see https://github.com/actions/runner-images/issues/7048
|
||||||
|
@ -20,14 +20,17 @@ args = sys.argv[1:]
|
|||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
command = args[0]
|
command = args[0]
|
||||||
if command == 'deploy':
|
if command == 'deploy':
|
||||||
|
site_repo = 'git@github.com:fmtlib/fmt.dev.git'
|
||||||
|
if 'CI' in os.environ:
|
||||||
|
site_repo = 'https://github.com/fmtlib/fmt.dev.git'
|
||||||
|
|
||||||
site_dir = os. path.join(build_dir, 'fmt.dev')
|
site_dir = os. path.join(build_dir, 'fmt.dev')
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(site_dir)
|
shutil.rmtree(site_dir)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == errno.ENOENT:
|
if e.errno == errno.ENOENT:
|
||||||
pass
|
pass
|
||||||
ret = call(['git', 'clone', '--depth=1',
|
ret = call(['git', 'clone', '--depth=1', site_repo, site_dir])
|
||||||
'git@github.com:fmtlib/fmt.dev.git', site_dir])
|
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
sys.exit(ret)
|
sys.exit(ret)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user