Skip to content

Commit

Permalink
Delete Prepare Machine and Checkout from Linux Package Testing (#4456)
Browse files Browse the repository at this point in the history
* Prepare Machine and msquic checkout should not be necessary for testing linux packages

* Install dependencies with package

* Try to fix dependencies

* Fix validated set
  • Loading branch information
liveans authored Aug 13, 2024
1 parent c36ffde commit dd316f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/package-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ jobs:
]
runs-on: ${{ matrix.vec.os }}
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
- name: Prepare Machine
shell: pwsh
run: scripts/prepare-machine.ps1 -ForTest ${{ matrix.vec.xdp }}
- name: Download Package
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
Expand All @@ -80,7 +73,7 @@ jobs:
sudo apt-add-repository ppa:lttng/stable-2.13
sudo apt-get update
sudo apt-get install -y lttng-tools
sudo find -name "*.deb" -exec dpkg -i {} \;
sudo find -name "*.deb" -exec sudo apt install -y ./{} \;
rm artifacts/bin/linux/${{ matrix.vec.arch }}_${{ matrix.vec.config }}_${{ matrix.vec.tls }}/libmsquic.so*
ls artifacts/bin/linux/${{ matrix.vec.arch }}_${{ matrix.vec.config }}_${{ matrix.vec.tls }}
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-reuse-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
find -name "*.tar" -exec tar -xvf '{}' \;
- name: Build Package
shell: pwsh
run: scripts/package-distribution.ps1
run: scripts/package-distribution.ps1 -OS ${{ inputs.os }}
- name: Upload build artifacts
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
with:
Expand Down
15 changes: 14 additions & 1 deletion scripts/package-distribution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@

param (
[Parameter(Mandatory = $false)]
[ValidateSet("ubuntu_2404", "ubuntu_2204", "ubuntu_2004", "")]
[ValidateSet("ubuntu_2404", "ubuntu_2204", "ubuntu_2004", "ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04", "")]
[string]$OS = ""
)

# Convert GH Actions OS names to our internal names
if ($OS -eq "ubuntu-20.04") {
$OS = "ubuntu_2004"
}

if ($OS -eq "ubuntu-22.04") {
$OS = "ubuntu_2204"
}

if ($OS -eq "ubuntu-24.04") {
$OS = "ubuntu_2404"
}

$UseXdp = $false
$Time64Distro = $false
if ($OS -eq "ubuntu_2404") {
Expand Down

0 comments on commit dd316f7

Please sign in to comment.