Skip to content

Commit

Permalink
Merge pull request #134 from boegel/disable_build_macos_package
Browse files Browse the repository at this point in the history
disable broken build-macos-package job in build-test-release-client-packages workflow
  • Loading branch information
bedroge authored Nov 12, 2022
2 parents e7cfdf0 + 4f3420a commit df5e84d
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/build-test-release-client-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,54 +66,54 @@ jobs:
name: linux_packages
path: cvmfs-config-eessi*

build-macos-package:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Get the version number for the packages
id: get_version
# If this is a tag, use the tag name (e.g. v1.2.3) without v as version number.
# Otherwise, just use 0.0.
run: |
VERSION=0.0
REF_NAME=${{ github.ref }}
[[ $REF_NAME == refs/tags/v* ]] && VERSION=${REF_NAME/refs\/tags\/v/}
echo ::set-output name=version::${VERSION}
# The next step uses a custom Ansible inventory, and due to that it cannot find
# the group_vars folder inside the inventory folder. This symlink fixes that.
- name: Make symlink to group_vars
run: ln -s inventory/group_vars

- name: Install Ansible
run: pip3 install ansible

- name: Prepare package source
run: ansible-playbook --connection=local ./prepare-client-packages.yml

- name: Install dependencies
run: brew install gnu-tar

- name: Install fpm
run: gem install --no-document fpm

- name: Build package
run: "fpm --debug -n cvmfs-config-eessi -v ${{ steps.get_version.outputs.version }} -t osxpkg -a all -s dir -C ./package --description 'CVMFS configuration package for EESSI.' etc"

- name: Find filename of generated package
id: find_filename
shell: bash
run: |
pkgfile="$(ls -1 cvmfs-config-eessi*.pkg)"
echo ::set-output name=pkgfile::${pkgfile}
- name: Upload macOS package as artifact
uses: actions/upload-artifact@v2
with:
name: macos_package
path: ${{ steps.find_filename.outputs.pkgfile }}
# build-macos-package:
# runs-on: macos-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Get the version number for the packages
# id: get_version
# # If this is a tag, use the tag name (e.g. v1.2.3) without v as version number.
# # Otherwise, just use 0.0.
# run: |
# VERSION=0.0
# REF_NAME=${{ github.ref }}
# [[ $REF_NAME == refs/tags/v* ]] && VERSION=${REF_NAME/refs\/tags\/v/}
# echo ::set-output name=version::${VERSION}
#
# # The next step uses a custom Ansible inventory, and due to that it cannot find
# # the group_vars folder inside the inventory folder. This symlink fixes that.
# - name: Make symlink to group_vars
# run: ln -s inventory/group_vars
#
# - name: Install Ansible
# run: pip3 install ansible
#
# - name: Prepare package source
# run: ansible-playbook --connection=local ./prepare-client-packages.yml
#
# - name: Install dependencies
# run: brew install gnu-tar
#
# - name: Install fpm
# run: gem install --no-document fpm
#
# - name: Build package
# run: "fpm --debug -n cvmfs-config-eessi -v ${{ steps.get_version.outputs.version }} -t osxpkg -a all -s dir -C ./package --description 'CVMFS configuration package for EESSI.' etc"
#
# - name: Find filename of generated package
# id: find_filename
# shell: bash
# run: |
# pkgfile="$(ls -1 cvmfs-config-eessi*.pkg)"
# echo ::set-output name=pkgfile::${pkgfile}
#
# - name: Upload macOS package as artifact
# uses: actions/upload-artifact@v2
# with:
# name: macos_package
# path: ${{ steps.find_filename.outputs.pkgfile }}

test-deb-package:
needs: build-linux-packages
Expand Down

0 comments on commit df5e84d

Please sign in to comment.