8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

Adjust scripts and add source bundle to snapshots.

This commit is contained in:
Adriano dos Santos Fernandes 2023-03-27 23:02:16 -03:00
parent fccef91235
commit 4ef8abef8b
6 changed files with 87 additions and 2 deletions

View File

@ -124,6 +124,70 @@ jobs:
files: |
gen/Firebird-*-linux-${{ matrix.arch }}*.tar.gz
build-src-bundle-docker:
name: build-src-bundle-docker
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 10
- name: Build
run: |
cd builds/docker/linux/x86-x64
./run-src-bundle.sh
- name: Snapshot - prepare
id: snapshot_prepare
if: |
github.repository == 'FirebirdSQL/firebird' &&
github.event.head_commit.message == 'increment build number' &&
github.ref_name == 'master'
run: |
echo "snapshot_name=${{ github.ref_name }}" >> $GITHUB_OUTPUT
- name: Snapshot - delete old assets
uses: mknejp/delete-release-assets@v1
if: steps.snapshot_prepare.outputs.snapshot_name
with:
repository: FirebirdSQL/snapshots
token: ${{ secrets.SNAPSHOT_RELEASE_TOKEN }}
tag: snapshot-${{ steps.snapshot_prepare.outputs.snapshot_name }}
fail-if-no-release: false
fail-if-no-assets: false
assets: |
Firebird-*-source.tar.xz
- name: Snapshot - release
id: snapshot_release_try1
uses: softprops/action-gh-release@v1
if: steps.snapshot_prepare.outputs.snapshot_name
continue-on-error: true
with:
repository: FirebirdSQL/snapshots
name: Latest snapshots for ${{ steps.snapshot_prepare.outputs.snapshot_name }}
tag_name: snapshot-${{ steps.snapshot_prepare.outputs.snapshot_name }}
prerelease: true
token: ${{ secrets.SNAPSHOT_RELEASE_TOKEN }}
files: |
gen/Firebird-*-source.tar.xz
- name: Snapshot - release (retry)
uses: softprops/action-gh-release@v1
if: |
steps.snapshot_prepare.outputs.snapshot_name &&
steps.snapshot_release_try1.outcome == 'failure'
with:
repository: FirebirdSQL/snapshots
name: Latest snapshots for ${{ steps.snapshot_prepare.outputs.snapshot_name }}
tag_name: snapshot-${{ steps.snapshot_prepare.outputs.snapshot_name }}
prerelease: true
token: ${{ secrets.SNAPSHOT_RELEASE_TOKEN }}
files: |
gen/Firebird-*-source.tar.xz
build-alpine-x64:
runs-on: ubuntu-20.04
container: alpine:3.14

View File

@ -203,7 +203,8 @@ RUN apt-get update && \
apt-get -y install \
cmake \
libfile-copy-recursive-perl \
unzip && \
unzip \
xz-utils && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g $ARG_CTNG_GID ctng && \

View File

@ -0,0 +1,2 @@
#!/bin/sh
docker run --platform amd64 --rm --user `id -u`:`id -g` -v `pwd`/../../../..:/firebird -t --entrypoint /entry-src-bundle.sh asfernandes/firebird-builder:fb5-x64-ng-v1

View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
trap exit INT TERM
setarch $SET_ARCH /src-bundle.sh &
wait $!

View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
./autogen.sh \
--host=$BUILD_ARCH \
--prefix=/opt/firebird \
--enable-binreloc \
--with-builtin-tomcrypt \
--with-termlib=:libncurses.a \
--with-atomiclib=:libatomic.a
./src/misc/src_bundle.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# The contents of this file are subject to the Initial
# Developer's Public License Version 1.0 (the "License");