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:
parent
fccef91235
commit
4ef8abef8b
64
.github/workflows/main.yml
vendored
64
.github/workflows/main.yml
vendored
@ -124,6 +124,70 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
gen/Firebird-*-linux-${{ matrix.arch }}*.tar.gz
|
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:
|
build-alpine-x64:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: alpine:3.14
|
container: alpine:3.14
|
||||||
|
@ -203,7 +203,8 @@ RUN apt-get update && \
|
|||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
cmake \
|
cmake \
|
||||||
libfile-copy-recursive-perl \
|
libfile-copy-recursive-perl \
|
||||||
unzip && \
|
unzip \
|
||||||
|
xz-utils && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN groupadd -g $ARG_CTNG_GID ctng && \
|
RUN groupadd -g $ARG_CTNG_GID ctng && \
|
||||||
|
2
builds/docker/linux/x86-x64/run-src-bundle.sh
Executable file
2
builds/docker/linux/x86-x64/run-src-bundle.sh
Executable 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
|
6
builds/docker/linux/x86-x64/scripts/entry-src-bundle.sh
Executable file
6
builds/docker/linux/x86-x64/scripts/entry-src-bundle.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
trap exit INT TERM
|
||||||
|
setarch $SET_ARCH /src-bundle.sh &
|
||||||
|
wait $!
|
12
builds/docker/linux/x86-x64/scripts/src-bundle.sh
Executable file
12
builds/docker/linux/x86-x64/scripts/src-bundle.sh
Executable 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
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# The contents of this file are subject to the Initial
|
# The contents of this file are subject to the Initial
|
||||||
# Developer's Public License Version 1.0 (the "License");
|
# Developer's Public License Version 1.0 (the "License");
|
||||||
|
Loading…
Reference in New Issue
Block a user