You've already forked linuxdeploy
mirror of
https://github.com/encounter/linuxdeploy.git
synced 2026-07-10 12:18:44 -07:00
More updates
This commit is contained in:
+27
-16
@@ -41,17 +41,13 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y gcovr libmagic-dev:i386 libjpeg-dev:i386 libpng-dev:i386 libboost-filesystem-dev:i386 libboost-regex-dev:i386 cimg-dev gcc-multilib g++-multilib libfuse2:i386
|
||||
|
||||
- name: Test coverage
|
||||
- name: Test coverage (native)
|
||||
run: bash -ex ci/test-coverage.sh
|
||||
if: matrix.BUILD_TYPE == 'coverage'
|
||||
|
||||
- name: Build, test and build AppImage (native)
|
||||
if: matrix.ARCH != 'aarch64' && matrix.BUILD_TYPE != 'coverage'
|
||||
run: bash -ex ci/build.sh
|
||||
if: matrix.ARCH != 'aarch64' && matrix.BUILD_TYPE == 'coverage'
|
||||
|
||||
- name: Build, test and build AppImage (VM)
|
||||
if: matrix.ARCH != 'x86_64' && matrix.ARCH != 'i386' && matrix.BUILD_TYPE != 'coverage'
|
||||
uses: uraimo/run-on-arch-action@v2.0.5
|
||||
- name: Test coverage (VM)
|
||||
if: matrix.ARCH != 'x86_64' && matrix.ARCH != 'i386' && matrix.BUILD_TYPE == 'coverage'
|
||||
uses: uraimo/run-on-arch-action@v2.2.0
|
||||
with:
|
||||
arch: ${{ matrix.ARCH }}
|
||||
distro: ubuntu20.04
|
||||
@@ -59,16 +55,31 @@ jobs:
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}:/build"
|
||||
install: |
|
||||
apt update
|
||||
apt install -y build-essential wget git pkg-config autoconf libmagic-dev libjpeg-dev libpng-dev cimg-dev
|
||||
apt-get update
|
||||
apt-get install -y build-essential wget git pkg-config autoconf libmagic-dev libjpeg-dev libpng-dev cimg-dev libboost-filesystem-dev libboost-regex-dev gcovr
|
||||
run: |
|
||||
cd /build
|
||||
ARCH=$(uname -m) ci/test-coverage.sh
|
||||
|
||||
- name: Build, test and build AppImage (native)
|
||||
if: matrix.ARCH != 'aarch64' && matrix.BUILD_TYPE != 'coverage'
|
||||
run: bash -ex ci/build.sh
|
||||
|
||||
- name: Build, test and build AppImage (VM)
|
||||
if: matrix.ARCH != 'x86_64' && matrix.ARCH != 'i386' && matrix.BUILD_TYPE != 'coverage'
|
||||
uses: uraimo/run-on-arch-action@v2.2.0
|
||||
with:
|
||||
arch: ${{ matrix.ARCH }}
|
||||
distro: ubuntu20.04
|
||||
githubToken: ${{ github.token }}
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}:/build"
|
||||
install: |
|
||||
apt-get update
|
||||
apt-get install -y build-essential wget git pkg-config autoconf libmagic-dev libjpeg-dev libpng-dev cimg-dev libboost-filesystem-dev libboost-regex-dev gcovr
|
||||
run: |
|
||||
cd /build
|
||||
ARCH=$(uname -m) ci/build.sh
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: AppImage aarch64
|
||||
path: linuxdeploy-plugin-appimage*.AppImage*
|
||||
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
|
||||
@@ -30,6 +30,10 @@ if [ "$ARCH" == "x86_64" ]; then
|
||||
EXTRA_CMAKE_ARGS=()
|
||||
elif [ "$ARCH" == "i386" ]; then
|
||||
EXTRA_CMAKE_ARGS=("-DCMAKE_TOOLCHAIN_FILE=$REPO_ROOT/cmake/toolchains/i386-linux-gnu.cmake" "-DUSE_SYSTEM_CIMG=OFF")
|
||||
elif [ "$ARCH" == "armhf" ]; then
|
||||
EXTRA_CMAKE_ARGS=()
|
||||
elif [ "$ARCH" == "aarch64" ]; then
|
||||
EXTRA_CMAKE_ARGS=()
|
||||
else
|
||||
echo "Architecture not supported: $ARCH" 1>&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user