Clean up workflows

This commit is contained in:
Daniel A. Wozniak 2024-12-06 03:41:26 -07:00 committed by Daniel Wozniak
parent e952a53689
commit e99201ca0b
9 changed files with 12 additions and 14 deletions

View file

@ -40,7 +40,7 @@ jobs:
build-deps-linux:
name: Linux
runs-on:
- ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'linux-arm64' }}
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || 'linux-arm64' }}
strategy:
fail-fast: false
matrix:

View file

@ -53,7 +53,7 @@ jobs:
build-deb-packages:
name: DEB
runs-on:
- ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'linux-arm64' }}
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || 'linux-arm64' }}
strategy:
fail-fast: false
matrix:
@ -145,7 +145,7 @@ jobs:
build-rpm-packages:
name: RPM
runs-on:
- ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'linux-arm64' }}
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || 'linux-arm64' }}
strategy:
fail-fast: false
matrix:

View file

@ -43,7 +43,7 @@ jobs:
env:
USE_S3_CACHE: 'false'
runs-on:
- ${{ matrix.arch == 'x86_64' && 'ubuntu-latest' || 'linux-arm64' }}
- ${{ matrix.arch == 'x86_64' && 'ubuntu-22.04' || 'linux-arm64' }}
strategy:
fail-fast: false
matrix:

View file

@ -18,7 +18,7 @@ env:
jobs:
Salt:
name: Lint Salt's Source Code
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['salt'] || fromJSON(inputs.changed-files)['lint'] }}
container:
@ -58,7 +58,7 @@ jobs:
Tests:
name: Lint Salt's Test Suite
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['tests'] || fromJSON(inputs.changed-files)['lint'] }}
container:

View file

@ -21,7 +21,7 @@ jobs:
Pre-Commit:
name: Run Pre-Commit Against Salt
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container:
image: ghcr.io/saltstack/salt-ci-containers/testing:ubuntu-22.04

View file

@ -32,7 +32,7 @@ jobs:
permissions:
contents: write # for dev-drprasad/delete-tag-and-release to delete tags or releases
name: Generate Tag and Github Release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
if: github.event.inputs.reTag == 'true'

View file

@ -19,7 +19,7 @@ permissions:
jobs:
update-winrepo:
name: Update Winrepo
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout Salt

View file

@ -87,9 +87,6 @@ jobs:
# with:
# python-version: '3.10'
#
- name: Test Matrix
run: |
"${{ toJSON(matrix) }}"
- name: Check python
run: |
@ -555,7 +552,8 @@ jobs:
timeout-minutes: ${{ fromJSON(inputs.testrun)['type'] == 'full' && inputs.default-timeout || 360 }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(inputs.matrix)['windows'] }}
matrix:
include: ${{ fromJSON(inputs.matrix)['windows'] }}
env:
SALT_TRANSPORT: ${{ matrix.transport }}
steps:

View file

@ -1601,7 +1601,7 @@ def workflow_config(
ctx.info(f"str_releases {str_releases}")
platforms = ["linux", "macos", "windows"]
pkg_test_matrix = {}
pkg_test_matrix: dict[str, list] = {_: [] for _ in platforms}
if os.environ.get("LINUX_ARM_RUNNER", "0") == "0":
TEST_SALT_LISTING["linux"] = list(