mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Merge pull request #912 from prymitive/faketime
fix(ci): use custom cache key for cross compilation job
This commit is contained in:
@@ -11,9 +11,6 @@ defaults_go: &DEFAULTS_GO
|
||||
# so it forces new cache archive on every build
|
||||
# remove it before creating cache archive
|
||||
- rm -vf $HOME/.cache/go-build/log.txt
|
||||
# force fixed mtime on all files so travis doesn't consider
|
||||
# these as updated
|
||||
- find $HOME/.cache/go-build/ -type f -exec touch -t 201909010000 {} \;
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
|
||||
@@ -119,6 +116,11 @@ jobs:
|
||||
name: Cross compile binaries
|
||||
if: repo = prymitive/karma AND type != pull_request
|
||||
<<: *DEFAULTS_GO
|
||||
env:
|
||||
# add an extra env so we don't push cross compilation cache into the main archive
|
||||
# as it slows down other jobs
|
||||
- JOB=cc
|
||||
- GO111MODULE=on
|
||||
before_script:
|
||||
# this stage needs to build everything including assets file and that
|
||||
# requires running webpack, so we need nodejs here
|
||||
|
||||
Reference in New Issue
Block a user