-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass new combined dev release 2
- Loading branch information
Showing
2 changed files
with
86 additions
and
189 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ jobs: | |
- ubuntu-24.04 | ||
type: | ||
- '-slim' | ||
- '' | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -58,6 +59,7 @@ jobs: | |
os: ${{ matrix.os }} | ||
options: --options dns-result-order=ipv4first | ||
pkg: "@yao-pkg/[email protected]" | ||
upload-key: "lando-${{ matrix.os }}-${{ matrix.runner == 'macos-14' && 'arm64' || 'x64' }}${{ matrix.type }}-${{ github.sha }}" | ||
- name: Ensure version | ||
if: (matrix.os == 'linux' && runner.os == 'Linux') || (matrix.os == 'macos' && runner.os == 'macOS') | ||
run: ./dist/@lando/core version --all | ||
|
@@ -68,11 +70,11 @@ jobs: | |
if: (matrix.os == 'linux' && runner.os == 'Linux') || (matrix.os == 'macos' && runner.os == 'macOS') | ||
run: ./dist/@lando/core config --path channel | grep edge | ||
- name: Ensure slimcore | ||
if: (matrix.os == 'linux' && runner.os == 'Linux') || (matrix.os == 'macos' && runner.os == 'macOS') && matrix.type == '-slim' | ||
if: ((matrix.os == 'linux' && runner.os == 'Linux') || (matrix.os == 'macos' && runner.os == 'macOS')) && matrix.type == '-slim' | ||
run: ./dist/@lando/core config --path fatcore | grep false | ||
- name: Ensure fatcore | ||
if: (matrix.os == 'linux' && runner.os == 'Linux') || (matrix.os == 'macos' && runner.os == 'macOS') && matrix.type != '-slim' | ||
run: | ||
if: ((matrix.os == 'linux' && runner.os == 'Linux') || (matrix.os == 'macos' && runner.os == 'macOS')) && matrix.type == '' | ||
run: | | ||
./dist/@lando/core config --path fatcore | grep true | ||
./dist/@lando/core config | grep -q "node_modules/@lando/wordpress" | ||
|
@@ -87,19 +89,32 @@ jobs: | |
matrix: | ||
include: | ||
- os: windows-2022 | ||
key: core-node20-win-x64-${{ github.sha }} | ||
key: lando-win-x64-${{ github.sha }} | ||
file: lando/core.exe | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-win-x64-${{ github.ref_name }}.exe | ||
- os: windows-2022 | ||
key: core-node20-win-arm64-${{ github.sha }} | ||
key: lando-win-arm64-${{ github.sha }} | ||
file: lando/core.exe | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-win-arm64-${{ github.ref_name }}.exe | ||
- os: windows-2022 | ||
key: lando-win-x64-slim-${{ github.sha }} | ||
file: lando/core.exe | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-win-x64-${{ github.ref_name }}-slim.exe | ||
- os: windows-2022 | ||
key: lando-win-arm64-slim-${{ github.sha }} | ||
file: lando/core.exe | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-win-arm64-${{ github.ref_name }}-slim.exe | ||
|
||
- os: macos-14 | ||
key: core-node20-macos-x64-${{ github.sha }} | ||
key: lando-macos-x64-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: APPLE_CERT_DATA | ||
certificate-password: APPLE_CERT_PASSWORD | ||
|
@@ -110,7 +125,7 @@ jobs: | |
options: --options runtime --entitlements entitlements.xml | ||
result: lando-macos-x64-${{ github.ref_name }} | ||
- os: macos-14 | ||
key: core-node20-macos-arm64-${{ github.sha }} | ||
key: lando-macos-arm64-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: APPLE_CERT_DATA | ||
certificate-password: APPLE_CERT_PASSWORD | ||
|
@@ -120,18 +135,54 @@ jobs: | |
apple-notary-password: APPLE_NOTARY_PASSWORD | ||
options: --options runtime --entitlements entitlements.xml | ||
result: lando-macos-arm64-${{ github.ref_name }} | ||
- os: macos-14 | ||
key: lando-macos-x64-slim-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: APPLE_CERT_DATA | ||
certificate-password: APPLE_CERT_PASSWORD | ||
apple-product-id: dev.lando.cli | ||
apple-team-id: FY8GAUX282 | ||
apple-notary-user: APPLE_NOTARY_USER | ||
apple-notary-password: APPLE_NOTARY_PASSWORD | ||
options: --options runtime --entitlements entitlements.xml | ||
result: lando-macos-x64-${{ github.ref_name }}-slim | ||
- os: macos-14 | ||
key: lando-macos-arm64-slim-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: APPLE_CERT_DATA | ||
certificate-password: APPLE_CERT_PASSWORD | ||
apple-product-id: dev.lando.cli | ||
apple-team-id: FY8GAUX282 | ||
apple-notary-user: APPLE_NOTARY_USER | ||
apple-notary-password: APPLE_NOTARY_PASSWORD | ||
options: --options runtime --entitlements entitlements.xml | ||
result: lando-macos-arm64-${{ github.ref_name }}-slim | ||
|
||
- os: ubuntu-24.04 | ||
key: core-node20-linux-x64-${{ github.sha }} | ||
key: lando-linux-x64-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-linux-x64-${{ github.ref_name }} | ||
- os: ubuntu-24.04 | ||
key: core-node20-linux-arm64-${{ github.sha }} | ||
key: lando-linux-arm64-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-linux-arm64-${{ github.ref_name }} | ||
- os: ubuntu-24.04 | ||
key: lando-linux-x64-slim-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-linux-x64-${{ github.ref_name }}-slim | ||
- os: ubuntu-24.04 | ||
key: lando-linux-arm64-slim-${{ github.sha }} | ||
file: lando/core | ||
certificate-data: KEYLOCKER_CLIENT_CERT | ||
certificate-password: KEYLOCKER_CLIENT_CERT_PASSWORD | ||
result: lando-linux-arm64-${{ github.ref_name }}-slim | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
@@ -166,13 +217,6 @@ jobs: | |
cp releases/${{ matrix.result }} "releases/$(echo ${{ matrix.result }} | sed 's/${{ github.ref_name }}/dev/;')" | ||
chmod +x releases/* | ||
# create checksums | ||
./scripts/generate-checksums.sh --directory releases --output checksums-dev.txt --depth 2 | ||
# cat the data | ||
cat checksums-dev.txt | ||
# move the checksums so it is uploaded as well | ||
cp checksums-dev.txt releases/checksums-dev.txt | ||
- name: Configure S3 Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
|
@@ -183,3 +227,29 @@ jobs: | |
shell: bash | ||
run: aws s3 sync releases s3://files.lando.dev/core | ||
|
||
- name: Upload to artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
retention-days: 1 | ||
name: ${{ matrix.key }} | ||
overwrite: true | ||
path: releases/* | ||
|
||
verify: | ||
runs-on: ubuntu-24.04 | ||
needs: | ||
- sign-n-deploy | ||
env: | ||
TERM: xterm | ||
steps: | ||
- name: Download for checksumming | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
- name: Combine artifacts | ||
run: | | ||
mkdir -p dist | ||
find "artifacts" -mindepth 2 -maxdepth 2 -type f -exec mv {} "dist" \; | ||
ls -lsa dist | ||
cd dist | ||
./scripts/generate-checksums.sh --show --debug |