diff --git a/.github/actions/job-setup/action.yml b/.github/actions/job-setup/action.yml index 6619e6ce..eb2cede3 100644 --- a/.github/actions/job-setup/action.yml +++ b/.github/actions/job-setup/action.yml @@ -13,9 +13,6 @@ runs: - name: Print dotnet version shell: pwsh run: dotnet --info - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Install NBGV CLI shell: pwsh run: dotnet tool update -g nbgv diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index 0743f30e..402d1514 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -6,24 +6,10 @@ jobs: package: runs-on: ubuntu-latest steps: - - name: Setup dotnet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 6.0.x - 8.0.x - 9.0.x - - name: Print dotnet version - run: dotnet --info - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: dotnet/nbgv@master - with: - setAllVars: true - - name: Update Version - shell: pwsh - run: ./.github/set-nbgv-version.ps1 + - uses: ./.github/actions/job-setup - name: Download Rust Artifacts uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/build-python.yml b/.github/workflows/build-python.yml index 138407d4..2f1f1cb7 100644 --- a/.github/workflows/build-python.yml +++ b/.github/workflows/build-python.yml @@ -3,7 +3,7 @@ on: workflow_call: jobs: - build-python-linux: + linux: runs-on: ${{ matrix.platform.runner }} strategy: matrix: @@ -21,6 +21,9 @@ jobs: - runner: ubuntu-22.04 target: ppc64le steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - uses: actions/setup-python@v5 with: @@ -47,7 +50,7 @@ jobs: name: wheels-linux-${{ matrix.platform.target }} path: src/lib-python/dist - build-python-musllinux: + musllinux: runs-on: ${{ matrix.platform.runner }} strategy: matrix: @@ -61,6 +64,9 @@ jobs: - runner: ubuntu-22.04 target: armv7 steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - uses: actions/setup-python@v5 with: @@ -87,7 +93,7 @@ jobs: name: wheels-musllinux-${{ matrix.platform.target }} path: src/lib-python/dist - build-python-windows: + windows: runs-on: ${{ matrix.platform.runner }} strategy: matrix: @@ -97,6 +103,9 @@ jobs: - runner: windows-latest target: x86 steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - uses: actions/setup-python@v5 with: @@ -122,7 +131,7 @@ jobs: name: wheels-windows-${{ matrix.platform.target }} path: src/lib-python/dist - build-python-macos: + macos: runs-on: ${{ matrix.platform.runner }} strategy: matrix: @@ -132,6 +141,9 @@ jobs: - runner: macos-14 target: aarch64 steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - uses: actions/setup-python@v5 with: @@ -156,9 +168,12 @@ jobs: name: wheels-macos-${{ matrix.platform.target }} path: src/lib-python/dist - build-python-sdist: + sdist: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - name: Build sdist uses: PyO3/maturin-action@v1 diff --git a/.github/workflows/build-rust.yml b/.github/workflows/build-rust.yml index 493edc46..d099ccf2 100644 --- a/.github/workflows/build-rust.yml +++ b/.github/workflows/build-rust.yml @@ -3,11 +3,14 @@ on: workflow_call: jobs: - build-rust-windows: + windows: runs-on: windows-latest env: RUSTFLAGS: -C target-feature=+crt-static steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - uses: Swatinem/rust-cache@v2 with: @@ -60,9 +63,12 @@ jobs: # uses: andymckay/cancel-action@0.5 # if: ${{ failure() }} - build-rust-linux: + linux: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - name: Install Dependencies run: | @@ -119,9 +125,12 @@ jobs: uses: andymckay/cancel-action@0.5 if: ${{ failure() }} - build-rust-macos: + macos: runs-on: macos-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: ./.github/actions/job-setup - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 294fb048..6ecc552a 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -55,18 +55,10 @@ jobs: VELOPACK_B2_TEST_TOKEN: ${{ secrets.VELOPACK_B2_TEST_TOKEN }} VELOPACK_AZ_TEST_TOKEN: ${{ secrets.VELOPACK_AZ_TEST_TOKEN }} steps: - - name: Setup dotnet - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 6.0.x - 8.0.x - 9.0.x - - name: Print dotnet version - run: dotnet --info - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: ./.github/actions/job-setup - name: Install FUSE run: | sudo add-apt-repository universe @@ -80,7 +72,7 @@ jobs: run: dotnet tool install -g dotnet-coverage - name: Build .NET run: dotnet build -c Release - - uses: caesay/wait-artifact-action@494939e840383463b1686ce3624a8aab059c2c8b + - uses: ./.github/actions/wait-artifact with: token: ${{ secrets.GITHUB_TOKEN }} max_wait_seconds: 900 @@ -114,7 +106,7 @@ jobs: uses: codecov/codecov-action@v5 with: directory: ./test - - uses: caesay/wait-artifact-action@494939e840383463b1686ce3624a8aab059c2c8b + - uses: ./.github/actions/wait-artifact if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }} with: token: ${{ secrets.GITHUB_TOKEN }}