Try fix CI
Some checks failed
Build Windows Package / fetch (push) Failing after 7m55s
Build Windows Package / fetch (pull_request) Failing after 7m1s
Pull Request / action (pull_request_target) Failing after 0s
Build Windows Package / setup (push) Has been cancelled
Build Windows Package / setup (pull_request) Has been cancelled
Build Windows Package / Windows Build (push) Has been cancelled
Build Windows Package / Windows Build (pull_request) Has been cancelled
Some checks failed
Build Windows Package / fetch (push) Failing after 7m55s
Build Windows Package / fetch (pull_request) Failing after 7m1s
Pull Request / action (pull_request_target) Failing after 0s
Build Windows Package / setup (push) Has been cancelled
Build Windows Package / setup (pull_request) Has been cancelled
Build Windows Package / Windows Build (push) Has been cancelled
Build Windows Package / Windows Build (pull_request) Has been cancelled
This commit is contained in:
22
.github/workflows/build_prepare.yaml
vendored
22
.github/workflows/build_prepare.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
# This action helps perform common actions before the build_* actions are started in parallel.
|
||||
name: Prepare Build
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -31,6 +31,11 @@ jobs:
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libnss3-dev
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install -g yarn
|
||||
|
||||
@@ -48,10 +53,17 @@ jobs:
|
||||
|
||||
- name: Generate cache hash files
|
||||
run: |
|
||||
yarn run --silent electron --no-sandbox --version > electronVersion
|
||||
cat package.json | jq -c .hakDependencies | sha1sum > hakHash
|
||||
find hak -type f -print0 | xargs -0 sha1sum >> hakHash
|
||||
find scripts/hak -type f -print0 | xargs -0 sha1sum >> hakHash
|
||||
# Save electron version
|
||||
NODE_ENV=production node -e "console.log(require('./package.json').devDependencies.electron)" > electronVersion
|
||||
|
||||
# Generate hak dependencies hash
|
||||
jq -c .hakDependencies package.json | sha1sum > hakHash
|
||||
if [ -d "hak" ]; then
|
||||
find hak -type f -print0 | sort -z | xargs -0 sha1sum >> hakHash
|
||||
fi
|
||||
if [ -d "scripts/hak" ]; then
|
||||
find scripts/hak -type f -print0 | sort -z | xargs -0 sha1sum >> hakHash
|
||||
fi
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user