forked from ultrapre/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/stellarium/stellarium int…
…o CICD
- Loading branch information
Showing
852 changed files
with
148,219 additions
and
267,887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,14 @@ | |
# | ||
name: "AppImage" | ||
|
||
on: | ||
push: | ||
branches: [release] | ||
on: [push] | ||
|
||
jobs: | ||
# AppImage x86_64 | ||
appimage-amd64: | ||
name: "x86_64" | ||
runs-on: ubuntu-18.04 | ||
if: "contains(github.event.head_commit.message, '[publish]') || contains(github.ref, 'heads/release')" | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -48,85 +47,85 @@ jobs: | |
name: 'Stellarium-edge-x86_64' | ||
path: ${{ github.workspace }}/artifact/*.AppImage | ||
|
||
# # AppImage ARM | ||
# appimage-arm: | ||
# name: "${{ matrix.arch }}" | ||
# runs-on: ubuntu-18.04 | ||
# | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# - arch: aarch64 | ||
# qarch: aarch64 | ||
# march: aarch64 | ||
# - arch: armv7 | ||
# qarch: arm | ||
# march: armhf | ||
# | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: Download static QEMU (${{ matrix.qarch }}) | ||
# run: | | ||
# wget https://github.com/multiarch/qemu-user-static/releases/download/v5.1.0-7/qemu-${{ matrix.qarch }}-static -O ${{ runner.temp }}/qemu-static | ||
# chmod +x ${{ runner.temp }}/qemu-static | ||
# | ||
# - name: Build AppImage | ||
# uses: uraimo/[email protected] | ||
# id: appimage | ||
# with: | ||
# arch: ${{ matrix.arch }} | ||
# distro: ubuntu18.04 | ||
# | ||
# # Not required, but speeds up builds by storing container images in | ||
# # a GitHub package registry. | ||
# githubToken: ${{ github.GITHUB_TOKEN }} | ||
# | ||
# # Create an artifacts directory | ||
# setup: | | ||
# mkdir -p "${PWD}/artifact" | ||
# | ||
# # Mount the artifacts directory as /artifact in the container | ||
# dockerRunArgs: | | ||
# --volume "${PWD}/artifact:/artifact" | ||
# --volume "${{ runner.temp }}/qemu-static:/usr/bin/qemu-static" | ||
# | ||
# # The shell to run commands with in the container | ||
# shell: /bin/bash | ||
# | ||
# # Install some dependencies in the container. This speeds up builds if | ||
# # you are also using githubToken. Any dependencies installed here will | ||
# # be part of the container image that gets cached, so subsequent | ||
# # builds don't have to re-install them. The image layer is cached | ||
# # publicly in your project's package repository, so it is vital that | ||
# # no secrets are present in the container state or logs. | ||
# install: | | ||
# # Update installed packages | ||
# apt-get update -y | ||
# ACCEPT_EULA=Y apt-get upgrade -y | ||
# # Installing dependencies | ||
# apt-get install -y qtbase5-dev qtscript5-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev libqt5opengl5-dev qtmultimedia5-dev libqt5multimedia5-plugins libqt5serialport5 libqt5serialport5-dev qtpositioning5-dev libgps-dev libqt5positioning5 libqt5positioning5-plugins zlib1g-dev libgl1-mesa-dev libdrm-dev cmake wget python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot | ||
# pip3 install appimage-builder | ||
# | ||
# # Produce a binary artifact and place it in the mounted volume | ||
# run: | | ||
# wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${{ matrix.march }}.AppImage -O /opt/appimagetool | ||
# chmod +x /opt/appimagetool | ||
# cd /opt | ||
# qemu-static /opt/appimagetool --appimage-extract | ||
# mv /opt/squashfs-root /opt/appimagetool.AppDir | ||
# ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool | ||
# mkdir -p ${{ github.workspace }}/builds/appimage | ||
# cd ${{ github.workspace }}/builds/appimage | ||
# export APP_VERSION="edge" | ||
# appimage-builder --recipe ${{ github.workspace }}/util/appimage/stellarium-appimage-${{ matrix.march }}.yml --skip-test | ||
# cp ${{ github.workspace }}/builds/appimage/*.AppImage /artifact | ||
# | ||
# - name: Upload AppImage | ||
# uses: actions/upload-artifact@v2 | ||
# if: success() | ||
# with: | ||
# name: 'Stellarium-edge-${{ matrix.arch }}' | ||
# path: ${{ github.workspace }}/artifact/*.AppImage | ||
# | ||
# AppImage ARM | ||
appimage-arm: | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: aarch64 | ||
qarch: aarch64 | ||
march: aarch64 | ||
- arch: armv7 | ||
qarch: arm | ||
march: armhf | ||
name: "${{ matrix.arch }}" | ||
runs-on: ubuntu-18.04 | ||
if: "contains(github.event.head_commit.message, '[publish]') || contains(github.ref, 'heads/release')" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download static QEMU (${{ matrix.qarch }}) | ||
run: | | ||
wget https://github.com/multiarch/qemu-user-static/releases/download/v5.2.0-2/qemu-${{ matrix.qarch }}-static -O ${{ runner.temp }}/qemu-static | ||
chmod +x ${{ runner.temp }}/qemu-static | ||
- name: Build AppImage | ||
uses: uraimo/[email protected] | ||
id: appimage | ||
with: | ||
arch: ${{ matrix.arch }} | ||
distro: ubuntu18.04 | ||
|
||
# Not required, but speeds up builds by storing container images in | ||
# a GitHub package registry. | ||
githubToken: ${{ github.GITHUB_TOKEN }} | ||
|
||
# Create an artifacts directory | ||
setup: | | ||
mkdir -p "${PWD}/artifact" | ||
# Mount the artifacts directory as /artifact in the container | ||
dockerRunArgs: | | ||
--volume "${PWD}/artifact:/artifact" | ||
--volume "${{ runner.temp }}/qemu-static:/usr/bin/qemu-static" | ||
# The shell to run commands with in the container | ||
shell: /bin/bash | ||
|
||
# Install some dependencies in the container. This speeds up builds if | ||
# you are also using githubToken. Any dependencies installed here will | ||
# be part of the container image that gets cached, so subsequent | ||
# builds don't have to re-install them. The image layer is cached | ||
# publicly in your project's package repository, so it is vital that | ||
# no secrets are present in the container state or logs. | ||
install: | | ||
# Update installed packages | ||
apt-get update -y | ||
ACCEPT_EULA=Y apt-get upgrade -y | ||
# Installing dependencies | ||
apt-get install -y qtbase5-dev qtscript5-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev libqt5opengl5-dev qtmultimedia5-dev libqt5multimedia5-plugins libqt5serialport5 libqt5serialport5-dev qtpositioning5-dev libgps-dev libqt5positioning5 libqt5positioning5-plugins zlib1g-dev libgl1-mesa-dev libdrm-dev cmake wget python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot | ||
pip3 install appimage-builder | ||
# Produce a binary artifact and place it in the mounted volume | ||
run: | | ||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-${{ matrix.march }}.AppImage -O /opt/appimagetool | ||
chmod +x /opt/appimagetool | ||
cd /opt | ||
qemu-static /opt/appimagetool --appimage-extract | ||
mv /opt/squashfs-root /opt/appimagetool.AppDir | ||
ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool | ||
mkdir -p ${{ github.workspace }}/builds/appimage | ||
cd ${{ github.workspace }}/builds/appimage | ||
export APP_VERSION="edge" | ||
appimage-builder --recipe ${{ github.workspace }}/util/appimage/stellarium-appimage-${{ matrix.march }}.yml --skip-test | ||
cp ${{ github.workspace }}/builds/appimage/*.AppImage /artifact | ||
- name: Upload AppImage | ||
uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: 'Stellarium-edge-${{ matrix.arch }}' | ||
path: ${{ github.workspace }}/artifact/*.AppImage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.