Skip to content

Commit

Permalink
Refactor this
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Feb 29, 2024
1 parent b620825 commit 0e48651
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/publish-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,34 +86,33 @@ jobs:
run: |
echo "${{ secrets.GPG_DEPLOY_KEY }}" > appimage/secret.gpg
gpg --import appimage/secret.gpg
- name: Install libc++, set CC and CXX env vars for ubuntu-22.04
- name: Set clang version to 12 for ubuntu-20.04
if: matrix.os == 'ubuntu-20.04'
run: |
echo "CLANG_VERSION=12" >> $GITHUB_ENV
- name: Set clang version to 14 for ubuntu-22.04
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get install -yqq --no-install-recommends \
libc++-14-dev \
libc++abi-14-dev
echo "CC=clang-14" >> $GITHUB_ENV
echo "CXX=clang++-14" >> $GITHUB_ENV
- name: Install libc++, set CC and CXX env vars for ubuntu-20.04
if: matrix.os == 'ubuntu-20.04'
echo "CLANG_VERSION=14" >> $GITHUB_ENV
- name: Install libc++, set CC and CXX env vars
run: |
sudo apt-get install -yqq --no-install-recommends \
libc++-12-dev \
libc++abi-12-dev
echo "CC=clang-12" >> $GITHUB_ENV
echo "CXX=clang++-12" >> $GITHUB_ENV
libc++-${CLANG-VERSION}-dev \
libc++abi-${CLANG-VERSION}-dev
echo "CC=clang-${CLANG-VERSION}" >> $GITHUB_ENV
echo "CXX=clang++-${CLANG-VERSION}" >> $GITHUB_ENV
- name: Build AppImage
run: ./appimage/build.sh
- name: Upload AppImage artifact
uses: actions/upload-artifact@v4
with:
name: "conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage"
name: 'conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage'
path: conky-x86_64.AppImage
if-no-files-found: error
- name: Upload AppImage checksum artifact
uses: actions/upload-artifact@v4
with:
name: "conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage.sha256"
name: 'conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage.sha256'
path: conky-x86_64.AppImage.sha256
if-no-files-found: error
- name: Upload man page artifact
Expand Down

0 comments on commit 0e48651

Please sign in to comment.