-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use the git mirrors for NSS and NSPR
Since the mercurial ones are often flaky. Also build NSS as part of the `nss` action, to reduce replication.
- Loading branch information
1 parent
78919a5
commit ef3fdb1
Showing
4 changed files
with
24 additions
and
36 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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
name: Checkout NSS and NSPR | ||
name: Fetch and build NSS | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Fetch NSS and NSPR | ||
- name: Fetch and build NSS | ||
shell: bash | ||
run: | | ||
for i in {1..$RETRIES}; do | ||
hg clone https://hg.mozilla.org/projects/nspr "$NSPR_DIR" && break || sleep $DELAY && false | ||
done | ||
for i in {1..$RETRIES}; do | ||
hg clone https://hg.mozilla.org/projects/nss "$NSS_DIR" && break || sleep $DELAY && false | ||
done | ||
git clone --depth=1 https://github.com/nss-dev/nspr "$NSPR_DIR" | ||
git clone --depth=1 https://github.com/nss-dev/nss "$NSS_DIR" | ||
$NSS_DIR/build.sh -g -Ddisable_tests=1 -o | ||
echo "NSS_DIR=$NSS_DIR" >> "$GITHUB_ENV" | ||
echo "NSPR_DIR=$NSPR_DIR" >> "$GITHUB_ENV" | ||
echo "LD_LIBRARY_PATH=$NSS_DIR/../dist/Release/lib" >> "$GITHUB_ENV" | ||
echo "DYLD_FALLBACK_LIBRARY_PATH=$NSS_DIR/../dist/Release/lib" >> "$GITHUB_ENV" | ||
echo "$NSS_DIR/../dist/Release/lib" >> "$GITHUB_PATH" | ||
env: | ||
NSS_DIR: ${{ github.workspace }}/nss | ||
NSPR_DIR: ${{ github.workspace }}/nspr | ||
RETRIES: 10 | ||
DELAY: 10 |
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