mirror of
https://github.com/wez/wezterm.git
synced 2024-09-11 14:25:57 +03:00
ci: try harder for app image build
This commit is contained in:
parent
349e9641da
commit
0b7d222240
4
.github/workflows/gen_ubuntu20.04.yml
vendored
4
.github/workflows/gen_ubuntu20.04.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
4
.github/workflows/gen_ubuntu20.04_tag.yml
vendored
4
.github/workflows/gen_ubuntu20.04_tag.yml
vendored
@ -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"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
rm -rf AppDir *.AppImage *.zsync
|
||||
set -e
|
||||
|
||||
|
@ -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 = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user