-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💙 merge pull request #57 from FWDekker/dev~
💙 v1.2.3~
- Loading branch information
Showing
13 changed files
with
713 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* eol=lf | ||
src/** eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,16 @@ permissions: | |
packages: read | ||
|
||
jobs: | ||
check-release-needed: | ||
# Note that `workflow_dispatch` is never skipped | ||
if: "!(contains(github.event.head_commit.message, '[cd skip]') || contains(github.event.head_commit.message, '[skip cd]'))" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: nop | ||
run: true | ||
|
||
build-linux: | ||
needs: [ check-release-needed ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -21,14 +30,15 @@ jobs: | |
sudo apt install -y rubygems libarchive-tools rpm zstd | ||
sudo gem install --no-document fpm | ||
- name: Build packages | ||
run: make dist/apk dist/deb dist/rpm dist/pacman | ||
run: make dist/generic dist/apk dist/deb dist/rpm dist/pacman | ||
- name: Upload built package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist/mommy* | ||
|
||
build-macos: | ||
needs: [ check-release-needed ] | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -44,6 +54,7 @@ jobs: | |
path: dist/mommy* | ||
|
||
build-freebsd: | ||
needs: [ check-release-needed ] | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
|
@@ -84,6 +95,7 @@ jobs: | |
path: dist/mommy* | ||
|
||
build-netbsd: | ||
needs: [ check-release-needed ] | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
|
@@ -120,6 +132,7 @@ jobs: | |
path: dist/mommy* | ||
|
||
build-openbsd: | ||
needs: [ check-release-needed ] | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
|
@@ -156,8 +169,8 @@ jobs: | |
|
||
|
||
release-mommy: | ||
runs-on: ubuntu-latest | ||
needs: [ build-linux, build-macos, build-freebsd, build-netbsd, build-openbsd ] | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch' | ||
|
||
steps: | ||
|
@@ -183,11 +196,10 @@ jobs: | |
body_path: RELEASE_NOTES.md | ||
files: mommy* | ||
|
||
|
||
release-aur: | ||
needs: [ release-mommy ] | ||
runs-on: ubuntu-latest | ||
container: archlinux:latest | ||
needs: [ release-mommy ] | ||
|
||
steps: | ||
- name: Set up basic system | ||
|
@@ -209,6 +221,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
path: mommy | ||
token: ${{ secrets.personal_access_token }} | ||
- name: Extract version number | ||
run: echo "MOMMY_VERSION=v$(head -n 1 ./mommy/version)" >> $GITHUB_ENV | ||
|
||
|
@@ -227,40 +240,41 @@ jobs: | |
working-directory: ./aur-mommy/ | ||
run: | | ||
echo "::group::Fast-forward main" | ||
git checkout dev | ||
git checkout master | ||
git merge --commit dev | ||
sudo -u build git checkout dev | ||
sudo -u build git checkout master | ||
sudo -u build git merge --commit dev | ||
echo "::endgroup::" | ||
echo "::group::Update build files" | ||
./update.sh "$MOMMY_VERSION" | ||
sudo -u build ./update.sh "$MOMMY_VERSION" | ||
echo "::endgroup::" | ||
echo "::group::Commit update" | ||
git config --global user.name "FWDekkerBot" | ||
git config --global user.email "[email protected]" | ||
git commit -am "mommy updated the build files to mommy $MOMMY_VERSION~" | ||
sudo -u build git config --global user.name "FWDekkerBot" | ||
sudo -u build git config --global user.email "[email protected]" | ||
sudo -u build git commit -am "mommy updated the build files to mommy $MOMMY_VERSION~" | ||
echo "::endgroup::" | ||
echo "::group::Fast-forward dev" | ||
git checkout dev | ||
git merge --commit master | ||
sudo -u build git checkout dev | ||
sudo -u build git merge --commit master | ||
echo "::endgroup::" | ||
echo "::group::Push changes" | ||
git push origin master dev | ||
sudo -u build git push origin master dev | ||
echo "::endgroup::" | ||
release-homebrew: | ||
runs-on: ubuntu-latest | ||
needs: [ release-mommy ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout mommy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: mommy | ||
token: ${{ secrets.personal_access_token }} | ||
- name: Extract version number | ||
run: echo "MOMMY_VERSION=v$(head -n 1 ./mommy/version)" >> $GITHUB_ENV | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.