Skip to content

Commit

Permalink
Fix CI #1
Browse files Browse the repository at this point in the history
Update workflow file in .github/workflows/ci.yml for SpecX code to fix the problem with the CI. The changes include fixing an incorrect repository name and updating deprecated syntax. Also, a step in the "deliver" job is disabled for now.
  • Loading branch information
prudhomm committed May 3, 2023
1 parent b3c987c commit cbb0c7d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@ jobs:
activate:
runs-on: ubuntu-latest
if: |
github.repository == 'feelpp/specx' &&
!startsWith(github.event.head_commit.message, 'Release ') &&
github.repository == 'berenger-eu/specx' &&
!contains(github.event.head_commit.message, 'ci skip')
steps:
- run: echo ok go

build:
needs: activate
runs-on: self-ubuntu-22.04
runs-on: ubuntu-latest
name: Build, Install, Package code
if: "!contains(github.event.head_commit.message, 'code skip')"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
recursive: true
submodules: 'recursive'
-
name: Build
run: |
Expand All @@ -37,7 +36,7 @@ jobs:
run: |
cmake --build --preset default -t package
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
# Artifact name
name: artifacts
Expand All @@ -46,11 +45,11 @@ jobs:

check:
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
name: Check Build, Install, Run
steps:
- name: Download
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
# Artifact name
name: artifacts
Expand All @@ -60,8 +59,10 @@ jobs:
run: ls -R
working-directory: build/default/

# disable for now
deliver:
runs-on: ubuntu-22.04
if: 0 == 1
runs-on: ubuntu-latest
needs: check
name: Docker Build, Tag, Push

Expand All @@ -71,7 +72,7 @@ jobs:
lfs: true
submodules: 'recursive'
- name: Download
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
# Artifact name
name: artifacts
Expand All @@ -82,21 +83,21 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/feelpp/specx
ghcr.io/berenger-eu/specx
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1.1.0
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.3.0
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1.9.0
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down

0 comments on commit cbb0c7d

Please sign in to comment.