Skip to content

Commit

Permalink
Test networking mode setup
Browse files Browse the repository at this point in the history
  • Loading branch information
arixmkii committed Feb 1, 2025
1 parent 4876684 commit 6e58f42
Showing 1 changed file with 51 additions and 42 deletions.
93 changes: 51 additions & 42 deletions .github/workflows/prepare-lima-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
uses: actions/download-artifact@v4
with:
path: qcw-art
- name: " Configure WSL2 networking mode"
shell: msys2 {0}
run: |
cat /c/Users/runneradmin/.wslconfig || true
cat > /c/Users/runneradmin/.wslconfig <<EOF
[wsl2]
networkingMode=mirrored
EOF
cat /c/Users/runneradmin/.wslconfig
- name: "πŸ—οΈ Install lima-infra"
shell: pwsh
run: |
Expand Down Expand Up @@ -78,45 +87,45 @@ jobs:
git fetch --depth 1 origin $LIMA_SHA
git checkout FETCH_HEAD
patch --binary -l -p 1 < ../patches/lima/0001-Add-QEMU-driver-support-on-Windows-hosts.patch
- name: "πŸ› οΈ Build Lima"
working-directory: lima-release
shell: msys2 {0}
run: |
cp -f ../qcw-art/qcw-go-wsllinks/go-wsllinks.exe ./contrib/bundle-wsl/go-wsllinks.exe
make binaries add-bundles
- name: "πŸ§ͺ Test Lima WSL2"
working-directory: lima-release/_output/bin
shell: pwsh
run: |
.\limactl start template://experimental/wsl2
type C:\Users\runneradmin\.lima\wsl2\ha.stdout.log
type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
- name: "πŸ“¦ Pack Lima"
shell: msys2 {0}
run: |
mkdir -p qcw
mkdir -p qcw-tmp
cp -r "lima-release/_output" qcw-tmp/lima
cd qcw-tmp/
zip -9 -r ../qcw/lima.zip .
cd ../qcw
find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
cat sha.checksums
- id: make_versions
name: "πŸ“Œ Export versions"
env:
GOWSLLINKS_VERSION: ${{ needs.call-prepare-go-wsllinks.outputs.gowsllinks_version }}
ALPINE_VERSION: ${{ needs.call-prepare-alpine-wsl.outputs.alpine_version }}
ALPINEWSL_VERSION: ${{ needs.call-prepare-alpine-wsl.outputs.alpine_wsl_version }}
shell: msys2 {0}
run: |
echo "lima=$LIMA_VERSION-$LIMA_SHA" >> "$GITHUB_OUTPUT"
echo "gowsllinks=$GOWSLLINKS_VERSION" >> "$GITHUB_OUTPUT"
echo "alpine=$ALPINE_VERSION" >> "$GITHUB_OUTPUT"
echo "alpine_wsl=$ALPINE_WSL_VERSION" >> "$GITHUB_OUTPUT"
- name: "πŸš€ Upload artifact"
uses: actions/upload-artifact@v4
with:
name: qcw-lima
path: qcw
# - name: "πŸ› οΈ Build Lima"
# working-directory: lima-release
# shell: msys2 {0}
# run: |
# cp -f ../qcw-art/qcw-go-wsllinks/go-wsllinks.exe ./contrib/bundle-wsl/go-wsllinks.exe
# make binaries add-bundles
# - name: "πŸ§ͺ Test Lima WSL2"
# working-directory: lima-release/_output/bin
# shell: pwsh
# run: |
# .\limactl start template://experimental/wsl2
# type C:\Users\runneradmin\.lima\wsl2\ha.stdout.log
# type C:\Users\runneradmin\.lima\wsl2\ha.stderr.log
# - name: "πŸ“¦ Pack Lima"
# shell: msys2 {0}
# run: |
# mkdir -p qcw
# mkdir -p qcw-tmp
# cp -r "lima-release/_output" qcw-tmp/lima
# cd qcw-tmp/
# zip -9 -r ../qcw/lima.zip .
# cd ../qcw
# find . -type f \( ! -iname "*.checksums" \) -exec sha256sum -b {} \; > sha.checksums
# find . -type f \( ! -iname "*.checksums" \) -exec sha512sum -b {} \; >> sha.checksums
# cat sha.checksums
# - id: make_versions
# name: "πŸ“Œ Export versions"
# env:
# GOWSLLINKS_VERSION: ${{ needs.call-prepare-go-wsllinks.outputs.gowsllinks_version }}
# ALPINE_VERSION: ${{ needs.call-prepare-alpine-wsl.outputs.alpine_version }}
# ALPINEWSL_VERSION: ${{ needs.call-prepare-alpine-wsl.outputs.alpine_wsl_version }}
# shell: msys2 {0}
# run: |
# echo "lima=$LIMA_VERSION-$LIMA_SHA" >> "$GITHUB_OUTPUT"
# echo "gowsllinks=$GOWSLLINKS_VERSION" >> "$GITHUB_OUTPUT"
# echo "alpine=$ALPINE_VERSION" >> "$GITHUB_OUTPUT"
# echo "alpine_wsl=$ALPINE_WSL_VERSION" >> "$GITHUB_OUTPUT"
# - name: "πŸš€ Upload artifact"
# uses: actions/upload-artifact@v4
# with:
# name: qcw-lima
# path: qcw

0 comments on commit 6e58f42

Please sign in to comment.