Skip to content

Commit 5238467

Browse files
committedJun 9, 2023
Initial commit
0 parents  commit 5238467

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+9764
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: audiocraft_build
2+
description: 'Build audiocraft env.'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- uses: actions/setup-python@v2
7+
with:
8+
python-version: 3.8
9+
- uses: actions/cache@v2
10+
id: cache
11+
with:
12+
path: env
13+
key: audiocraft_env-${{ hashFiles('**/requirements.txt') }}
14+
15+
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
16+
name: Install dependencies
17+
shell: bash
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install libsndfile1-dev ffmpeg
21+
python3 -m venv env
22+
. env/bin/activate
23+
python -m pip install --upgrade pip
24+
pip install -e '.[dev]'
25+
- name: System Dependencies
26+
shell: bash
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install libsndfile1-dev ffmpeg

‎.github/workflows/audiocraft_docs.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: audiocraft_docs
2+
on:
3+
push:
4+
branches: [ main ]
5+
6+
jobs:
7+
run_docs:
8+
name: Run docs
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: ./.github/actions/audiocraft_build
13+
- name: Config git
14+
run: |
15+
git config --global user.email "defossez@fb.com"
16+
git config --global user.name "Alexandre Défossez (autodoc)"
17+
18+
- name: Reset branch
19+
run: |
20+
git branch -f gh-docs main
21+
git checkout gh-docs
22+
23+
- name: Make docs
24+
run: |
25+
. env/bin/activate
26+
make docs
27+
git add -f docs
28+
git commit -m docs
29+
30+
- name: Push branch
31+
run: |
32+
git push -f -u origin gh-docs

0 commit comments

Comments
 (0)
Failed to load comments.