Fix doc CI and clean workflows

This commit is contained in:
Victor Zverovich 2024-06-09 16:51:19 -07:00
parent a8cfc0cc2c
commit d175db8f5b
4 changed files with 12 additions and 9 deletions

View File

@ -8,21 +8,21 @@ jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
- name: Build fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
with:
oss-fuzz-project-name: 'fmt'
dry-run: false
language: c++
- name: Run Fuzzers
- name: Run fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@061583ebb5a96653e42feb3a97ee513eedc18078 # master
with:
oss-fuzz-project-name: 'fmt'
fuzz-seconds: 300
dry-run: false
language: c++
- name: Upload Crash
- name: Upload crash
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: failure() && steps.build.outcome == 'success'
with:

View File

@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Add ubuntu mirrors
- name: Add Ubuntu mirrors
run: |
# Github Actions caching proxy is at times unreliable
# 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
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: |
sudo apt update
sudo apt install doxygen
@ -34,4 +34,4 @@ jobs:
KEY: ${{secrets.KEY}}
run: |
cmake $GITHUB_WORKSPACE
$GITHUB_WORKSPACE/support/mkdocs deploy dev -p
$GITHUB_WORKSPACE/support/mkdocs deploy dev

View File

@ -77,7 +77,7 @@ jobs:
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
if: ${{ matrix.cxx == 'g++-11' }}
- name: Add ubuntu mirrors
- name: Add Ubuntu mirrors
run: |
# Github Actions caching proxy is at times unreliable
# see https://github.com/actions/runner-images/issues/7048

View File

@ -20,14 +20,17 @@ args = sys.argv[1:]
if len(args) > 0:
command = args[0]
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')
try:
shutil.rmtree(site_dir)
except OSError as e:
if e.errno == errno.ENOENT:
pass
ret = call(['git', 'clone', '--depth=1',
'git@github.com:fmtlib/fmt.dev.git', site_dir])
ret = call(['git', 'clone', '--depth=1', site_repo, site_dir])
if ret != 0:
sys.exit(ret)