Skip to content

Commit

Permalink
Disable arch docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Feb 15, 2021
1 parent 7c535ee commit 651c307
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 35 deletions.
66 changes: 41 additions & 25 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ env:
DOCKER_BUILDKIT: 1

jobs:
build-arch:
runs-on: ubuntu-20.04
# Disable until https://github.com/actions/virtual-environments/issues/2658 fixed
# build-arch:
# runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- name: Run docker
run: |
docker build --file build-docker/arch/Dockerfile --tag riey/kime-build:arch .
docker run --name kime-arch riey/kime-build:arch
mkdir /tmp/out
docker cp kime-arch:/opt/kime-out/kime.tar.xz /tmp/out/
# steps:
# - uses: actions/checkout@v2
# - name: Run docker
# run: |
# docker build --file build-docker/arch/Dockerfile --tag riey/kime-build:arch .
# docker run --name kime-arch riey/kime-build:arch
# mkdir /tmp/out
# docker cp kime-arch:/opt/kime-out/kime.tar.xz /tmp/out/

- name: Upload tar.xz
uses: actions/upload-artifact@v2
with:
name: arch
path: /tmp/out/kime.tar.xz
# - name: Upload tar.xz
# uses: actions/upload-artifact@v2
# with:
# name: arch
# path: /tmp/out/kime.tar.xz

# ubuntu build is run on native
build-ubuntu:
Expand All @@ -42,30 +43,34 @@ jobs:
mkdir -pv /opt/kime-out
ci/build_deb.sh
- name: Upload deb
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ubuntu
path: /opt/kime-out/kime_amd64.deb
path: /opt/kime-out/*

upload:
needs:
- build-arch
# Disable until https://github.com/actions/virtual-environments/issues/2658 fixed
# - build-arch
- build-ubuntu

runs-on: ubuntu-20.04

steps:
- name: Checkout workdir
run: mkdir /tmp/work && cd /tmp/work
- name: Download arch artifact
uses: actions/download-artifact@v2
with:
name: arch
# Disable until https://github.com/actions/virtual-environments/issues/2658 fixed
# - name: Download arch artifact
# uses: actions/download-artifact@v2
# with:
# name: arch
# path: arch
- name: Download ubuntu artifact
uses: actions/download-artifact@v2
with:
name: ubuntu
path: ubuntu
- name: Create draft release
id: create_release
uses: actions/create-release@v1
Expand All @@ -77,14 +82,25 @@ jobs:
draft: true
prerelease: false

# Disable until https://github.com/actions/virtual-environments/issues/2658 fixed
# - name: Upload archive
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./kime.tar.xz
# asset_name: kime-arch-${{ github.ref }}.tar.xz
# asset_content_type: application/x-xz

- name: Upload archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kime.tar.xz
asset_name: kime-${{ github.ref }}.tar.xz
asset_path: ./ubuntu/kime.tar.xz
asset_name: kime-ubuntu-${{ github.ref }}.tar.xz
asset_content_type: application/x-xz

- name: Upload deb package
Expand All @@ -93,6 +109,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kime_amd64.deb
asset_path: ./ubuntu/kime_amd64.deb
asset_name: kime_${{ github.ref }}_amd64.deb
asset_content_type: application/x-xz
9 changes: 0 additions & 9 deletions build-docker/arch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ FROM archlinux:base-devel

WORKDIR /opt/kime

# WORKAROUND for glibc 2.33 and old Docker
# See https://github.com/actions/virtual-environments/issues/2658
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
bsdtar -C / -xvf "$patched_glibc"

RUN mkdir -pv /var/lib/pacman

RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm --needed rust cmake clang llvm libxcb cairo
RUN pacman -S --noconfirm --needed gtk2 gtk3 gtk4
Expand Down
2 changes: 1 addition & 1 deletion ci/build_deb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

scripts/build.sh -ar
ci/build_xz.sh
scripts/release-deb.sh /opt/kime-out

0 comments on commit 651c307

Please sign in to comment.