aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2023-04-11 20:11:30 +0200
committerGitHub <noreply@github.com>2023-04-11 20:11:30 +0200
commitd06f97c4d4a2d96ac449f400ed24ac0cc9ec9465 (patch)
treea8f62425dfafdb67b1e01242867e4b8eef3e4896
parent13474ff7874b093abb4fdf2b4cadb98e5a96efd1 (diff)
downloadi3-d06f97c4d4a2d96ac449f400ed24ac0cc9ec9465.tar.gz
i3-d06f97c4d4a2d96ac449f400ed24ac0cc9ec9465.zip
GH Actions: Check for gcc before deploying (#5483)
Fixes #5482
-rw-r--r--.github/workflows/main.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e9842600..7e9cbecd 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -33,7 +33,7 @@ jobs:
run: |
docker pull ${{ env.BASENAME }} || ./travis/docker-build-and-push.sh ${{ env.BASENAME }} travis/travis-base.Dockerfile
- name: fetch or build extra Docker containers
- if: github.ref == 'refs/heads/next'
+ if: github.ref == 'refs/heads/next' && matrix.compiler == 'gcc'
run: |
docker pull ${{ env.BASENAME_UBUNTU }} || ./travis/docker-build-and-push.sh ${{ env.BASENAME_UBUNTU }} travis/travis-base-ubuntu.Dockerfile
- name: build i3
@@ -55,7 +55,7 @@ jobs:
run: |
docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 -e CC ${{ env.BASENAME }} /bin/sh -c 'rm -rf distbuild; mkdir distbuild && cd distbuild && meson setup .. -Ddocs=true -Dmans=true && meson dist --no-tests'
- name: build Debian packages
- if: github.ref == 'refs/heads/next'
+ if: github.ref == 'refs/heads/next' && matrix.compiler == 'gcc'
run: |
echo "::group::Debian amd64"
docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${{ env.BASENAME }} ./travis/debian-build.sh deb/debian-amd64/DIST
@@ -64,15 +64,15 @@ jobs:
docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${{ env.BASENAME_UBUNTU }} ./travis/debian-build.sh deb/ubuntu-amd64/DIST
echo "::endgroup::"
- name: push Debian packages to balto
- if: github.ref == 'refs/heads/next'
+ if: github.ref == 'refs/heads/next' && matrix.compiler == 'gcc'
run: |
travis/push-balto.sh
- name: build docs
- if: github.ref == 'refs/heads/next'
+ if: github.ref == 'refs/heads/next' && matrix.compiler == 'gcc'
run: |
docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${{ env.BASENAME }} ./travis/docs.sh
- name: push docs to GitHub pages
- if: github.ref == 'refs/heads/next'
+ if: github.ref == 'refs/heads/next' && matrix.compiler == 'gcc'
run: |
travis/deploy-github-pages.sh
formatting: