6 Commits
Author SHA1 Message Date
TheAssassin af96f4295e Fix installation of 32-bit deps 2020-12-11 15:17:30 +01:00
TheAssassin f2f7244b2e Fix actions workflow syntax, mk. 2 2020-12-11 15:14:33 +01:00
TheAssassin 873c6be24a Fix actions workflow syntax 2020-12-11 15:12:44 +01:00
TheAssassin e15aec3a97 Check out submodules in workflow 2020-12-11 15:09:46 +01:00
TheAssassin f95b4475d2 Build at least once every month 2020-12-11 15:08:23 +01:00
TheAssassin 4750a08b03 Switch to GitHub actions 2020-12-11 15:06:24 +01:00
5 changed files with 68 additions and 41 deletions
Binary file not shown.
+68
View File
@@ -0,0 +1,68 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
# build at least once a month
- cron: '0 0 1 * *'
jobs:
appimage-x86_64:
name: AppImage x86_64
runs-on: ubuntu-16.04
env:
ARCH: x86_64
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build AppImage
run: bash -ex ci/build-appimage.sh
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: AppImage x86_64
path: linuxdeploy-plugin-appimage*.AppImage*
appimage-i386:
name: AppImage i386
runs-on: ubuntu-16.04
env:
ARCH: i386
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y g++-multilib libc6-dev:i386 libstdc++-5-dev:i386 zlib1g:i386 libfuse2:i386
- name: Build AppImage
run: bash -ex ci/build-appimage.sh
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: AppImage i386
path: linuxdeploy-plugin-appimage*.AppImage*
upload:
name: Create release and upload artifacts
needs:
- appimage-x86_64
- appimage-i386
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Inspect directory after downloading artifacts
run: ls -alFR
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage **/linuxdeploy-plugin-appimage*.AppImage*
-32
View File
@@ -1,32 +0,0 @@
language: cpp
services:
- docker
matrix:
include:
- env: ARCH=x86_64
- env: ARCH=i386
before_install:
- sudo apt-get install -y g++-multilib libc6-dev:i386 libstdc++-5-dev:i386 zlib1g:i386
install:
- mkdir cmake-prefix
- wget -O- https://github.com/Kitware/CMake/releases/download/v3.18.1/cmake-3.18.1-Linux-x86_64.tar.gz | tar xz -Ccmake-prefix/ --strip-components=1
- export PATH="$(readlink -f cmake-prefix/bin)":"$PATH"
- which cmake
script:
- bash -xe travis/build-appimage.sh
after_success:
- ls -lh
# make sure only pushes to rewrite create a new release, otherwise pretend PR and upload to transfer.sh
- if [ "$TRAVIS_BRANCH" != "master" ]; then export TRAVIS_EVENT_TYPE=pull_request; fi
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh linuxdeploy-plugin-appimage*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
-9
View File
@@ -1,9 +0,0 @@
#! /bin/bash
# get a compiler that allows for using modern-ish C++ (>= 11) on a distro that doesn't normally support it
# before you ask: yes, the binaries will work on CentOS 6 even without devtoolset (they somehow partially link C++
# things statically while using others from the system...)
# so, basically, it's magic!
source /opt/rh/devtoolset-*/enable
exec "$@"