diff --git a/.github/workflows/linux_checks.yml b/.github/workflows/linux_checks.yml index e93163e39..6e6a685da 100644 --- a/.github/workflows/linux_checks.yml +++ b/.github/workflows/linux_checks.yml @@ -22,11 +22,11 @@ jobs: with: path: ~/.cargo/git key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }} - - name: Cache cargo build + - name: Cache cargo target uses: actions/cache@v1 with: path: ~/target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }} - name: Cache pip wheels uses: actions/cache@v1 with: @@ -52,18 +52,23 @@ jobs: sudo apt update sudo apt install portaudio19-dev gettext rename sudo snap install ripgrep --classic - - name: Run checks + - name: Run develop run: | export RSPY_TARGET_DIR=~/target export CARGO_TARGET_DIR=~/target - make check BUILDFLAGS="" + make develop BUILDFLAGS="" - name: Run build run: | export RSPY_TARGET_DIR=~/target export CARGO_TARGET_DIR=~/target make build BUILDFLAGS="" + - name: Run check + run: | + export RSPY_TARGET_DIR=~/target + export CARGO_TARGET_DIR=~/target + make check BUILDFLAGS="" - name: Upload python wheels uses: actions/upload-artifact@v1 with: - name: linux_python_wheels + name: anki_linux_python_wheels path: dist diff --git a/.github/workflows/mac_checks.yml.off b/.github/workflows/mac_checks.yml.off index b5d324475..a50b918cd 100644 --- a/.github/workflows/mac_checks.yml.off +++ b/.github/workflows/mac_checks.yml.off @@ -19,11 +19,11 @@ jobs: with: path: ~/.cargo/git key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }} - - name: Cache cargo build + - name: Cache cargo target uses: actions/cache@v1 with: path: ~/target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }} - name: Cache pip wheels uses: actions/cache@v1 with: @@ -48,18 +48,23 @@ jobs: run: | brew install portaudio protobuf gettext rename ripgrep brew link gettext --force - - name: Run checks + - name: Run develop run: | export RSPY_TARGET_DIR=~/target export CARGO_TARGET_DIR=~/target - make check BUILDFLAGS="" + make develop BUILDFLAGS="" - name: Run build run: | export RSPY_TARGET_DIR=~/target export CARGO_TARGET_DIR=~/target make build BUILDFLAGS="" + - name: Run check + run: | + export RSPY_TARGET_DIR=~/target + export CARGO_TARGET_DIR=~/target + make check BUILDFLAGS="" - name: Upload python wheels uses: actions/upload-artifact@v1 with: - name: mac_os_python_wheels + name: anki_mac_os_python_wheels path: dist diff --git a/.github/workflows/windows_checks.yml b/.github/workflows/windows_checks.yml index 0eac083c3..68917a3f5 100644 --- a/.github/workflows/windows_checks.yml +++ b/.github/workflows/windows_checks.yml @@ -37,11 +37,11 @@ jobs: with: path: C:\Rust\.cargo\git key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }} - - name: Cache cargo build + - name: Cache cargo target uses: actions/cache@v1 with: path: ${{ github.workspace }}\target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }} + key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }} - name: Cache pip wheels uses: actions/cache@v1 with: @@ -97,13 +97,13 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12 - - name: Run checks + - name: Run develop shell: cmd run: | echo on set "RSPY_TARGET_DIR=%GITHUB_WORKSPACE%\target" set "CARGO_TARGET_DIR=%GITHUB_WORKSPACE%\target" - make check BUILDFLAGS="" + make develop BUILDFLAGS="" - name: Run build shell: cmd run: | @@ -111,8 +111,15 @@ jobs: set "RSPY_TARGET_DIR=%GITHUB_WORKSPACE%\target" set "CARGO_TARGET_DIR=%GITHUB_WORKSPACE%\target" make build BUILDFLAGS="" + - name: Run check + shell: cmd + run: | + echo on + set "RSPY_TARGET_DIR=%GITHUB_WORKSPACE%\target" + set "CARGO_TARGET_DIR=%GITHUB_WORKSPACE%\target" + make check BUILDFLAGS="" - name: Upload python wheels uses: actions/upload-artifact@v1 with: - name: windows_python_wheels + name: anki_windows_python_wheels path: dist