forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User docker files for the CI (java-native-access#113)
Motivation: We should use the same docker / docker-compose file for the CI as we do when we build locally. This helps to keep things consistent and easy to reproduce Modifications: - Add new workflow that uses docker / docker-compose - Adjust dockerfile to pre-download all dependencies - Adjust dockerfile to pre-build quiche - Add new docker-compose task that can be used to run the build against the pre-build quiche and so save time Result: Better CI setup
- Loading branch information
1 parent
df06b6e
commit a3b15ac
Showing
6 changed files
with
74 additions
and
40 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,43 @@ | ||
name: Build project | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
schedule: | ||
- cron: '30 7 * * 1' # At 07:30 on Monday, every Monday. | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# http://man7.org/linux/man-pages/man1/date.1.html | ||
- name: Create Cache Key | ||
id: cache-key | ||
run: | | ||
echo "::set-output name=key::$(/bin/date -u "+%Y%U")" | ||
shell: bash | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
# Enable caching of Docker layers | ||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
with: | ||
key: docker-cache-${{ steps.cache-key.outputs.key }}-{hash} | ||
restore-keys: | | ||
docker-cache-${{ steps.cache-key.outputs.key }}- | ||
- name: Run docker-compose | ||
run: docker-compose -f docker/docker-compose.centos-6.yaml -f docker/docker-compose.centos-6.18.yaml run build | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: ${{ failure() }} | ||
with: | ||
name: target | ||
path: target/ # or path/to/artifact |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,13 +3,16 @@ version: "3" | |
services: | ||
|
||
runtime-setup: | ||
image: netty-codec-quic-centos:centos-6-1.8 | ||
image: netty-codec-quic-centos6:centos-6-1.8 | ||
build: | ||
args: | ||
java_version : "[email protected]" | ||
|
||
build: | ||
image: netty-codec-quic-centos:centos-6-1.8 | ||
image: netty-codec-quic-centos6:centos-6-1.8 | ||
|
||
build-clean: | ||
image: netty-codec-quic-centos6:centos-6-1.8 | ||
|
||
shell: | ||
image: netty-codec-quic-centos:centos-6-1.8 | ||
image: netty-codec-quic-centos6:centos-6-1.8 |
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