Update macOS hosted runner versions used by Github CI (#393) #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Generate release files | |
on: | |
push: | |
branches: | |
- master | |
# pull_request: | |
# branches: | |
# - master | |
jobs: | |
job1: | |
name: 'Package code for release' | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 38 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # do not persist auth token in the local git config | |
path: clean-checkout | |
# Consider using CPack when it supports a white-list for included files | |
# - name: 'Install minimum dependencies' | |
# run: | | |
# sudo apt-get install -y libapr1-dev libaprutil1-dev | |
# | |
# - name: 'Create release files' | |
# run: | | |
# cmake -B package -S clean-checkout -DAPACHE_MAINTAINER=yes -DCPACK_PACKAGE_DIRECTORY=`pwd` | |
# cmake --build package --target dist | |
# | |
- name: 'Create release files' | |
run: | | |
cd clean-checkout | |
rm -r src/main/abi-symbols | |
VERSION=`grep 'set(log4cxx_VER ' src/cmake/projectVersionDetails.cmake|sed -Ee 's/.*log4cxx_VER ([0-9]*)\.([0-9]*)\.([0-9]*).*/\1.\2.\3/'` | |
tar -zcf "../apache-log4cxx-$VERSION.tar.gz" "--transform=s,^,apache-log4cxx-$VERSION/," INSTALL LICENSE NOTICE README.md CMakeLists.txt src liblog4cxx.pc.in liblog4cxx-qt.pc.in KEYS | |
cd .. | |
sha512sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha512" | |
sha256sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha256" | |
tar xf "apache-log4cxx-$VERSION.tar.gz" | |
zip -rm "apache-log4cxx-$VERSION.zip" apache-log4cxx-$VERSION | |
sha512sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha512" | |
sha256sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha256" | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: 'Upload release files' | |
path: | | |
apache-log4cxx-* |