Skip to content

Commit

Permalink
* produce artifacts on creating a release
Browse files Browse the repository at this point in the history
  • Loading branch information
mulle-nat committed May 16, 2023
1 parent 896888d commit c03f725
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 15 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/mulle-sde-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Artifacts

on:
release:
types: [ prereleased, released ]

env:
BUILD_TYPE: release
OTHER_PROJECTS: "MulleFoundation/foundation-developer;
MulleFoundation/mulle-foundation-developer;
mulle-objc/mulle-objc-developer;
mulle-c/mulle-c-developer;"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]

steps:
- name: Add to path
run: echo "$HOME/bin" >> $GITHUB_PATH

- uses: actions/checkout@v3

- uses: mulle-sde/github-ci@v1

- uses: mulle-cc/github-ci@v4

- name: Choose musl on Linux
run: |
[ "${{ runner.os }}" != "Linux" ] || mulle-sde env set MULLE_CRAFT_SDKS "musl"
- name: Mulle-SDE Craft
run: mulle-sde craft --release

- name: Get Executable
run: echo "exepath=$(mulle-sde product list)" >> $GITHUB_OUTPUT
id: executable

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: artifact.${{ runner.os }}
path: ${{ steps.executable.outputs.exepath }}
retention-days: 1

release:
needs: [ build ]
name: Upload Artifacts to Release
runs-on: ubuntu-latest
steps:
- name: Download Linux Artifact
uses: actions/download-artifact@v3
with:
name: artifact.Linux
# actual file will be ${{ steps.executable.outputs.exepath }} though!

- name: Rename Linux Artifact
run: |
mv ${{ github.workspace }}/${{ github.event.repository.name }} ${{ github.workspace }}/${{ github.event.repository.name }}.linux
- name: Download macOS Artifact
uses: actions/download-artifact@v3
with:
name: artifact.macOS

- name: Rename macOS Artifact
run: mv ${{ github.workspace }}/${{ github.event.repository.name }} ${{ github.workspace }}/${{ github.event.repository.name }}.macos

- name: Upload Artifacts
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_paths: '[ "${{ github.event.repository.name }}.*" ]'
7 changes: 6 additions & 1 deletion .github/workflows/mulle-sde-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI

on: [push,workflow_dispatch]
on:
push:
branches:
- release
pull_request:
workflow_dispatch:

env:
BUILD_TYPE: release
Expand Down
1 change: 1 addition & 0 deletions .mulle/etc/match/match.d/65-generated--clib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .mulle/share/env/environment-plugin.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .mulle/share/sde/extension

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .mulle/share/sourcetree/config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1860.0.1

* produce artifacts on creating a release

# 1860.0.0

* don't use mapped file anymore as it does not work with '<(' indirection
Expand Down
2 changes: 1 addition & 1 deletion cmake/share/CMakeTweaksC.cmake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions cmake/share/IDESupport.cmake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
* version: major, minor, patch
*/
#define MULLE_SCION_VERSION ((1860 << 20) | (0 << 8) | 0)
#define MULLE_SCION_VERSION ((1860 << 20) | (0 << 8) | 1)


static inline unsigned int mulle_scion_get_version_major( void)
Expand Down
2 changes: 1 addition & 1 deletion test/.mulle/share/env/environment-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export MULLE_SOURCETREE_SYMLINK='YES'
#
#
#
export MULLE_SDE_INSTALLED_VERSION="2.2.0"
export MULLE_SDE_INSTALLED_VERSION="2.2.1"


6 changes: 3 additions & 3 deletions test/.mulle/share/sourcetree/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mulle-testallocator;${MULLE__TESTALLOCATOR_NODETYPE:-tar};no-import,no-singlephase;771E8378-6441-4C38-A7E4-CB238EBE5F35;${MULLE__TESTALLOCATOR_URL:-https://github.com/mulle-core/mulle-testallocator/archive/${MULLE_TAG}.tar.gz};${MULLE__TESTALLOCATOR_BRANCH};${MULLE__TESTALLOCATOR_TAG:-latest};;
mulle-scion;${MULLE__SCION_NODETYPE:-tar};;8D534286-3EB7-405B-8508-AE1411A424C7;${MULLE__SCION_URL:-https://github.com/MulleWeb/mulle-scion/archive/${MULLE_TAG}.tar.gz};${MULLE__SCION_BRANCH};${MULLE__SCION_TAG:-latest};;
Foundation-startup;${FOUNDATION_STARTUP_NODETYPE:-tar};no-dynamic-link,no-header,no-intermediate-link;58E37B87-5419-485D-ADC2-2580758E7B06;${FOUNDATION_STARTUP_URL:-https://github.com/MulleFoundation/Foundation-startup/archive/${MULLE_TAG}.tar.gz};${FOUNDATION_STARTUP_BRANCH};${FOUNDATION_STARTUP_TAG:-latest};;
mulle-testallocator;${MULLE__TESTALLOCATOR_NODETYPE:-tar};no-import,no-singlephase;60C57ECC-2529-4B47-95B4-D7C2731EDD74;${MULLE__TESTALLOCATOR_URL:-https://github.com/mulle-core/mulle-testallocator/archive/${MULLE_TAG}.tar.gz};${MULLE__TESTALLOCATOR_BRANCH};${MULLE__TESTALLOCATOR_TAG:-latest};;
mulle-scion;${MULLE__SCION_NODETYPE:-tar};;4A085193-822A-478E-870B-EC67D0AE9386;${MULLE__SCION_URL:-https://github.com/MulleWeb/mulle-scion/archive/${MULLE_TAG}.tar.gz};${MULLE__SCION_BRANCH};${MULLE__SCION_TAG:-latest};;
Foundation-startup;${FOUNDATION_STARTUP_NODETYPE:-tar};no-dynamic-link,no-header,no-intermediate-link;582B9161-43FE-4301-8CCD-8206666DBE6A;${FOUNDATION_STARTUP_URL:-https://github.com/MulleFoundation/Foundation-startup/archive/${MULLE_TAG}.tar.gz};${FOUNDATION_STARTUP_BRANCH};${FOUNDATION_STARTUP_TAG:-latest};;

0 comments on commit c03f725

Please sign in to comment.