Skip to content

Commit

Permalink
CI: comment out docs.rs test
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd committed Oct 23, 2024
1 parent 98b8dce commit 66cf155
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,29 +77,30 @@ jobs:
- name: Generate packages
run: |
scripts/test_publish.sh "$LINERA_PACKAGES" ${{ runner.temp }}/registry
- name: Extract packaged crates
run: |
cd "${{ runner.temp }}/registry"
grep -v '^#' "$LINERA_PACKAGES" | while read LINE; do
CRATE="${LINE%% *}"
tar -xzvf "${CRATE}-*.crate"
done
- name: Checkout docs.rs tool repository
run: |
cd ${{ runner.temp }}
git clone https://github.com/rust-lang/docs.rs docsrs
cd docsrs
git submodule update --init
- name: Build documentation using docs.rs
run: |
cd ${{ runner.temp }}/docsrs
cp .env.sample .env
mkdir -p ignored/cratesfyi-prefix/crates.io-index
. .env
SQLX_OFFLINE=1 cargo build
docker compose up -d db s3
cargo run -- database migrate
grep -v ^# "$LINERA_PACKAGES" | while read LINE; do
CRATE="${LINE%% *}"
cargo run -- build crate --local "${{ runner.temp }}/registry/${CRATE}-*/"
done
# TODO(#2593): fix docs.rs CI test
# - name: Extract packaged crates
# run: |
# cd "${{ runner.temp }}/registry"
# grep -v '^#' "$LINERA_PACKAGES" | while read LINE; do
# CRATE="${LINE%% *}"
# tar -xzvf "${CRATE}-*.crate"
# done
# - name: Checkout docs.rs tool repository
# run: |
# cd ${{ runner.temp }}
# git clone https://github.com/rust-lang/docs.rs docsrs
# cd docsrs
# git submodule update --init
# - name: Build documentation using docs.rs
# run: |
# cd ${{ runner.temp }}/docsrs
# cp .env.sample .env
# mkdir -p ignored/cratesfyi-prefix/crates.io-index
# . .env
# SQLX_OFFLINE=1 cargo build
# docker compose up -d db s3
# cargo run -- database migrate
# grep -v ^# "$LINERA_PACKAGES" | while read LINE; do
# CRATE="${LINE%% *}"
# cargo run -- build crate --local "${{ runner.temp }}/registry/${CRATE}-*/"
# done

0 comments on commit 66cf155

Please sign in to comment.