Skip to content

Commit 93f9847

Browse files
committed
CI Fix
1 parent 6d372b5 commit 93f9847

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defaults:
1616

1717
env:
1818
BUILD_TYPE: Release
19+
APP_NAME: magnifiqus
1920

2021
jobs:
2122
linux:
@@ -34,7 +35,7 @@ jobs:
3435
if: ${{ matrix.config.cc == 'gcc' }}
3536
run: |
3637
echo "INSTALL_REF=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
37-
echo "INSTALL_NAME=lite-xl-${GITHUB_REF##*/}-linux" >> "$GITHUB_ENV"
38+
echo "INSTALL_NAME=$APP_NAME-${GITHUB_REF##*/}-linux" >> "$GITHUB_ENV"
3839
- uses: actions/checkout@v2
3940
- name: Update Packages
4041
run: sudo apt-get update
@@ -44,15 +45,19 @@ jobs:
4445
qt5-default \
4546
libqt5x11extras5-dev
4647
- name: Configure
47-
run: cmake -B ${{ runner.workspace }}/build -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
48+
run: |
49+
cmake \
50+
-DCMAKE_INSTALL_PREFIX="/usr" \
51+
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
52+
-B ${{ runner.workspace }}/build
4853
- name: Build
4954
run: cmake --build ${{ runner.workspace }}/build --config "$BUILD_TYPE"
5055
- name: Install
5156
if: ${{ matrix.config.cc == 'gcc' }}
5257
working-directory: ${{ runner.workspace }}/build
5358
run: |
54-
DESTDIR="$(pwd)/$install_name" cmake --build . --config "$BUILD_TYPE" --target install
55-
tar czvf "$install_name".tar.gz "$install_name"
59+
DESTDIR="$(pwd)/$INSTALL_NAME" cmake --build . --config "$BUILD_TYPE" --target install
60+
tar czvf "$INSTALL_NAME".tar.gz "$INSTALL_NAME"
5661
- name: Upload Artifacts
5762
if: ${{ matrix.config.cc == 'gcc' }}
5863
uses: actions/upload-artifact@v2
@@ -62,6 +67,7 @@ jobs:
6267

6368
deploy:
6469
name: Deployment
70+
if: startsWith(github.ref, 'refs/tags/')
6571
runs-on: ubuntu-18.04
6672
needs:
6773
- linux
@@ -72,7 +78,6 @@ jobs:
7278
with:
7379
name: Linux Artifacts
7480
- name: Display File Information
75-
shell: bash
7681
run: ls -lR
7782
# Note: not using `actions/create-release@v1`
7883
# because it cannot update an existing release
@@ -86,4 +91,4 @@ jobs:
8691
draft: false
8792
prerelease: false
8893
files: |
89-
magnifiqus-${{ env.INSTALL_REF }}-*
94+
${{ env.APP_NAME }}-${{ env.INSTALL_REF }}-*

0 commit comments

Comments
 (0)