-
Notifications
You must be signed in to change notification settings - Fork 124
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 #299 from alerque/bootstrapable
Build standalone script edition in CI
- Loading branch information
Showing
8 changed files
with
155 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
standalone: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Fetch tags | ||
run: | | ||
git fetch --prune --tags ||: | ||
- name: Configure standalone script | ||
run: | | ||
./bootstrap.sh | ||
./configure --with-standalone --bindir=/ | ||
make DESTDIR=. install-exec | ||
echo VERSION=$(cat .version) >> $GITHUB_ENV | ||
- name: Post standalone script artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: standalone-deployment-${{ env.VERSION }} | ||
path: vcsh-standalone.sh | ||
|
||
source-dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Fetch tags | ||
run: | | ||
git fetch --prune --tags ||: | ||
- name: Install build dependencies | ||
run: | | ||
sudo apt install -y ronn | ||
- name: Install perl test dependencies | ||
uses: perl-actions/[email protected] | ||
with: | ||
install: | | ||
Shell::Command | ||
Test::Most | ||
- name: Configure | ||
run: | | ||
./bootstrap.sh | ||
./configure | ||
- name: Run tests | ||
run: | | ||
make check | ||
- name: Build source package | ||
run: | | ||
make dist | ||
echo VERSION=$(cat .version) >> $GITHUB_ENV | ||
- name: Post build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: vcsh-${{ env.VERSION }} | ||
path: vcsh-${{ env.VERSION }}.zip |
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
editor-config: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Lint code style | ||
uses: editorconfig-checker/[email protected] | ||
|
||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -11,9 +14,9 @@ jobs: | |
- name: Fetch tags | ||
run: | | ||
git fetch --prune --tags ||: | ||
- name: Install dependencies | ||
- name: Install build dependencies | ||
run: | | ||
sudo apt install ronn | ||
sudo apt install -y ronn | ||
- name: Install perl test dependencies | ||
uses: perl-actions/[email protected] | ||
with: | ||
|
@@ -27,12 +30,6 @@ jobs: | |
- name: Run tests | ||
run: | | ||
make check | ||
- name: Build source package | ||
- name: Run full cycle packaging check | ||
run: | | ||
make dist | ||
echo VERSION=$(cat .version) >> $GITHUB_ENV | ||
- name: Post build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: vcsh-${{ env.VERSION }} | ||
path: vcsh-${{ env.VERSION }}.zip | ||
make distcheck |
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ unreleased | |
* Allow use of specific path when running Git or any dependency | ||
* Fail if hook scripts return failure codes | ||
* Check GIT_REMOTE early on clone() | ||
* Support renaming script as configuration option | ||
* Setup standalone script build profile and attach directly to releases | ||
|
||
2021-04-05 Richard Hartmann <[email protected]> | ||
|
||
|
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
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