Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WebFreak001/dub-upgrade
Run `dub upgrade` trying to repeat on network failure and using package cache on GitHub Actions
https://github.com/WebFreak001/dub-upgrade
Last synced: about 2 hours ago
JSON representation
Run `dub upgrade` trying to repeat on network failure and using package cache on GitHub Actions
- Host: GitHub
- URL: https://github.com/WebFreak001/dub-upgrade
- Owner: WebFreak001
- Created: 2020-07-31T19:25:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T03:38:02.000Z (over 1 year ago)
- Last Synced: 2024-11-12T06:38:02.619Z (7 days ago)
- Language: JavaScript
- Size: 2.35 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-d - dub-upgrade - Run `dub upgrade` trying to repeat on network failure and using package cache on GitHub Actions (GitHub Actions / Bare metal / kernel development)
README
# dub-upgrade
GitHub Actions CI Action to run `dub upgrade` with automatic retry on network failure and caching package downloads and optionally also compiled library binaries across builds using dub's native caching functionality.
## Usage
Basic usage:
```yml
steps:
- uses: actions/checkout@v1- uses: dlang-community/setup-dlang@v1 # install D compiler & Dub
with:
compiler: dmd-latest- uses: WebFreak001/[email protected]
- name: Run tests # do whatever with upgraded & fetched dependencies
run: dub test
```Caching compiled binaries:
```yml
steps:
- uses: actions/checkout@v1- uses: dlang-community/setup-dlang@v1 # install D compiler & Dub
with:
compiler: dmd-latest- uses: WebFreak001/[email protected]
- name: Run tests # do whatever with upgraded & fetched dependencies
run: dub test- uses: WebFreak001/[email protected] # second call to cache dependency binaries
with:
store: true # set this to true to not run an upgrade but only update cache
```Not using cache, only retrying on network failure:
```yml
steps:
- uses: actions/checkout@v1- uses: dlang-community/setup-dlang@v1 # install D compiler & Dub
with:
compiler: dmd-latest- uses: WebFreak001/[email protected]
with:
cache: false- name: Run tests # do whatever with upgraded & fetched dependencies
run: dub test
```