1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 04:56:12 +03:00

ci: try harder for app image build

This commit is contained in:
Wez Furlong 2023-02-17 12:13:02 -07:00
parent 349e9641da
commit 0b7d222240
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
5 changed files with 16 additions and 6 deletions

View File

@ -20,7 +20,9 @@ on:
jobs:
build:
runs-on: "ubuntu-latest"
container: "ubuntu:20.04"
container:
image: "ubuntu:20.04"
options: --privileged
steps:
- name: "set APT to non-interactive"

View File

@ -22,7 +22,9 @@ on:
jobs:
build:
runs-on: "ubuntu-latest"
container: "ubuntu:20.04"
container:
image: "ubuntu:20.04"
options: --privileged
env:
BUILD_REASON: "Schedule"

View File

@ -8,7 +8,9 @@ on:
jobs:
build:
runs-on: "ubuntu-latest"
container: "ubuntu:20.04"
container:
image: "ubuntu:20.04"
options: --privileged
steps:
- name: "set APT to non-interactive"

View File

@ -1,5 +1,5 @@
#!/bin/bash
set -x
rm -rf AppDir *.AppImage *.zsync
set -e

View File

@ -394,7 +394,7 @@ cargo build --all --release""",
steps = [RunStep("Package", "bash ci/deploy.sh", env=deploy_env)]
if self.app_image:
# AppImage needs fuse
steps += self.install_system_package('libfuse2')
steps += self.install_system_package("libfuse2")
steps.append(RunStep("Source Tarball", "bash ci/source-archive.sh"))
steps.append(RunStep("Build AppImage", "bash ci/appimage.sh"))
return steps
@ -875,7 +875,11 @@ def generate_actions(namer, jobber, trigger, is_continuous, is_tag=False):
file_name = f".github/workflows/gen_{name}.yml"
if job.container:
container = f"container: {yv(job.container)}"
if t.app_image:
container = f"container:\n image: {yv(job.container)}\n options: --privileged"
else:
container = f"container: {yv(job.container)}"
else:
container = ""