Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable broken build-macos-package job in build-test-release-client-packages workflow #134

Merged
merged 1 commit into from
Nov 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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