Skip to content

Merge pull request #1 from sbesson/ubi_only #5

Merge pull request #1 from sbesson/ubi_only

Merge pull request #1 from sbesson/ubi_only #5

Workflow file for this run

---
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
tags: builder
load: true
- name: Run
run: |
patch -p1 -d ice < 0001-OpenSSL-3.0-build-See-zeroc-ice-ice-1320.patch
mkdir dist
docker run --rm -e CPPFLAGS='-Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=register' -v $PWD/dist:/opt -v $PWD/ice:/build builder /bin/bash -c "cd /build/cpp ; make install"
cd dist
tar zcf Ice-3.6.5-rhel9-x86_64.tar.gz Ice-3.6.5
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: dist/*.tar.gz
if-no-files-found: error
release:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts from build
uses: actions/download-artifact@v2
- name: List artifacts
run: ls -R
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
artifacts/*.tar.gz