Skip to content

Commit

Permalink
Try using fopro for windows, macos, and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Oct 13, 2024
1 parent e4a4584 commit 0335154
Showing 1 changed file with 45 additions and 6 deletions.
51 changes: 45 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ jobs:
tool: cargo-nextest

- name: Cache .fopro-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .fopro-cache
key: ${{ runner.os }}-fopro-${{ hashFiles('**/Cargo.lock') }}
Expand All @@ -205,18 +205,15 @@ jobs:
run: |
curl -sL https://github.com/bearcove/fopro/releases/download/v1.0.2/fopro-installer.sh | bash
~/.cargo/bin/fopro &
echo "UV_ALL_PROXY=localhost:8080" >> $GITHUB_ENV
echo "UV_CA_CERT=/tmp/fopro-ca.crt" >> $GITHUB_ENV
- name: "Download deps"
run: |
cargo nextest list \
--features python-patch \
--workspace
- name: "Set proxy"
run: |
echo "UV_ALL_PROXY=localhost:8080" >> $GITHUB_ENV
echo "UV_CA_CERT=/tmp/fopro-ca.crt" >> $GITHUB_ENV
- name: "Cargo test"
run: |
cargo nextest run \
Expand Down Expand Up @@ -263,6 +260,27 @@ jobs:
with:
tool: cargo-nextest

- name: Cache .fopro-cache
uses: actions/cache@v4
with:
path: .fopro-cache
key: ${{ runner.os }}-fopro-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-fopro-
- name: Install and launch fopro
run: |
curl -sL https://github.com/bearcove/fopro/releases/download/v1.0.2/fopro-installer.sh | bash
~/.cargo/bin/fopro &
echo "UV_ALL_PROXY=localhost:8080" >> $GITHUB_ENV
echo "UV_CA_CERT=/tmp/fopro-ca.crt" >> $GITHUB_ENV
- name: "Download deps"
run: |
cargo nextest list \
--features python-patch \
--workspace
- name: "Cargo test"
run: |
cargo nextest run \
Expand Down Expand Up @@ -319,6 +337,27 @@ jobs:
with:
tool: cargo-nextest

- name: Cache .fopro-cache
uses: actions/cache@v4
with:
path: .fopro-cache
key: ${{ runner.os }}-fopro-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-fopro-
- name: Install and launch fopro
run: |
Invoke-WebRequest -Uri https://github.com/bearcove/fopro/releases/download/v1.0.2/fopro-installer.ps1 -OutFile fopro-installer.ps1
.\fopro-installer.ps1
Start-Process -FilePath "$env:USERPROFILE\.cargo\bin\fopro.exe" -NoNewWindow
echo "UV_ALL_PROXY=localhost:8080" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "UV_CA_CERT=$env:TEMP\fopro-ca.crt" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: "Download deps"
working-directory: ${{ env.UV_WORKSPACE }}
run: |
cargo nextest list --no-default-features --features python,pypi --workspace
- name: "Cargo test"
working-directory: ${{ env.UV_WORKSPACE }}
run: |
Expand Down

0 comments on commit 0335154

Please sign in to comment.