Skip to content

Commit

Permalink
Reenabling the draft
Browse files Browse the repository at this point in the history
  • Loading branch information
pysco68 committed Feb 17, 2025
1 parent c4d5494 commit 5787d33
Showing 1 changed file with 31 additions and 36 deletions.
67 changes: 31 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,31 @@ env:
version_in_development: v1.2.0

jobs:
# draft-release:
# permissions:
# contents: write
# name: Draft Release if develop branch
# runs-on: ubuntu-latest
# outputs:
# upload_url: ${{ steps.draft_release.outputs.upload_url }}
# release_id: ${{ steps.draft_release.outputs.id }}
# steps:
# - name: Create Release
# id: draft_release
# if: github.head_ref == 'develop'
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# owner: tipi-build
# repo: goldilock
# commitish: ${{ github.sha }}
# tag_name: ${{ env.version_in_development }}
# release_name: ${{ env.version_in_development }} ${{ github.sha }}
# draft: true
# prerelease: true
#
draft-release:
permissions:
contents: write
name: Draft Release if develop branch
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.draft_release.outputs.upload_url }}
release_id: ${{ steps.draft_release.outputs.id }}
steps:
- uses: actions/checkout@v2
- name: Create Release
id: draft_release
if: github.head_ref == 'develop' || github.head_ref == 'feature/aarm64-release'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
owner: tipi-build
repo: goldilock
commitish: ${{ github.sha }}
tag_name: ${{ env.version_in_development }}
release_name: ${{ env.version_in_development }} ${{ github.sha }} (${{ github.head_ref }})
draft: true
prerelease: true

# build-macos:
# name: build-macos
# runs-on: macos-latest
Expand Down Expand Up @@ -102,13 +103,7 @@ jobs:
name: build-linux-${{ matrix.os }}
permissions:
contents: write
#container:
# image: tipibuild/tipi-ubuntu:latest
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# # --init makes sure the container has an init process running as as the PID 1 in the container. Specifying an init process ensures the usual responsibilities of an init system, such as reaping zombie processes, are performed inside the created container.
# options: --init
#needs: draft-release
needs: draft-release
steps:
- uses: actions/checkout@v2
- name: setup
Expand All @@ -121,8 +116,8 @@ jobs:
sudo docker buildx version
- name: compute build folder
run: |
echo "BUILD_ARCHITECTURE=${uname -i}" >> $GITHUB_ENV
echo "BUILD_FOLDER=build/${uname -i}" >> $GITHUB_ENV
echo "BUILD_ARCHITECTURE=$(uname -i)" >> $GITHUB_ENV
echo "BUILD_FOLDER=build/linux_$(uname -i)" >> $GITHUB_ENV
- name: install and build
run: |
cmake -S . -B $BUILD_FOLDER -GNinja -DCMAKE_TOOLCHAIN_FILE=environments/linux-system-clang-cxx17-static.cmake -DCMAKE_BUILD_TYPE=Release
Expand All @@ -138,8 +133,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{needs.draft-release.outputs.upload_url}}
asset_path: $BUILD_FOLDER/goldilock.zip
asset_name: goldilock-linux-$BUILD_ARCHITECTURE.zip
asset_path: ${{ env.BUILD_FOLDER }}/goldilock.zip
asset_name: goldilock-linux-${{ env.BUILD_ARCHITECTURE }}.zip
asset_content_type: application/zip

- name: Check static link
Expand All @@ -152,7 +147,7 @@ jobs:
run: |
cd $BUILD_FOLDER
ctest --verbose -E test_docker
- name: Run docker tests
run: |
Expand Down

0 comments on commit 5787d33

Please sign in to comment.