mirror of
https://github.com/rife2/bld
synced 2026-06-25 05:27:46 +02:00
Merge pull request #81 from ethauvin/main
Enable CI dependencies caching
This commit is contained in:
commit
877b4f758b
11
.github/workflows/bld.yml
vendored
11
.github/workflows/bld.yml
vendored
|
|
@ -94,7 +94,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
|
|
@ -115,11 +115,8 @@ jobs:
|
|||
key: ${{ runner.os }}-bld-java${{ matrix.java-version}}-lib
|
||||
restore-keys: ${{ runner.os }}-bld-java${{ matrix.java-version}}-lib
|
||||
|
||||
- name: Download dependencies
|
||||
run: ./bld clean download
|
||||
|
||||
- name: Compile source
|
||||
run: ./bld compile
|
||||
run: ./bld clean compile
|
||||
|
||||
- name: Run tests
|
||||
id: tests
|
||||
|
|
@ -143,7 +140,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
|
|
@ -190,7 +187,7 @@ jobs:
|
|||
run: git config --global core.autocrlf input
|
||||
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
|
|
|
|||
4
.github/workflows/pages.yml
vendored
4
.github/workflows/pages.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
|
|
@ -57,4 +57,4 @@ jobs:
|
|||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v5
|
||||
uses: actions/deploy-pages@v5
|
||||
|
|
|
|||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
|
|||
2
core
2
core
|
|
@ -1 +1 @@
|
|||
Subproject commit fa567721c00d99626ed439db4f0340eadff0ec03
|
||||
Subproject commit 5f977636531d1b978b762a615d720097baa37830
|
||||
|
|
@ -6,6 +6,8 @@ package rife.bld.dependencies;
|
|||
|
||||
import rife.bld.BldVersion;
|
||||
import rife.tools.FileUtils;
|
||||
import rife.tools.HttpUtils;
|
||||
import rife.tools.Product;
|
||||
import rife.tools.exceptions.FileUtilsErrorException;
|
||||
|
||||
import java.io.File;
|
||||
|
|
@ -191,7 +193,7 @@ public abstract class ArtifactRetriever {
|
|||
private static URLConnection openUrlConnection(RepositoryArtifact artifact) throws IOException {
|
||||
var connection = new URL(artifact.location()).openConnection();
|
||||
connection.setUseCaches(false);
|
||||
connection.setRequestProperty("User-Agent", "bld " + BldVersion.getVersion());
|
||||
connection.setRequestProperty(HttpUtils.HEADER_USER_AGENT, Product.BLD.toUserAgent(BldVersion.getVersion()));
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -830,7 +830,7 @@ public class Wrapper {
|
|||
throws IOException {
|
||||
var connection = url.openConnection();
|
||||
connection.setUseCaches(false);
|
||||
connection.setRequestProperty("User-Agent", "bld " + version);
|
||||
connection.setRequestProperty(HttpUtils.HEADER_USER_AGENT, Product.BLD.toUserAgent(version));
|
||||
try (var in = connection.getInputStream()) {
|
||||
return new String(in.readAllBytes(), StandardCharsets.UTF_8);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue