onnxruntime/tools/ci_build/github
Yi Zhang c5f5e3ec5e
Improve 2 cache tasks in one pipeline yaml (#15267)
### Description
1. Make 2 cache tasks in one pipeline really works
2. Each building step has its own environment variable CCACHE_DIR
instead of job variables.
3. Extenal Protobuf compilation cache only updates with deps.txt. It
doesn't generate new cache in every commit.


### Motivation and Context
The simple workflow is as below
```
--------build with ccache-------             
         |                       
        cache                    
         |                       
      {CCACHE_DIR}-----cache stat.
```

```
-------Cache@2------
           |
    download cache           
           |                         
          {path}--------upload cache
```

1. {XXX} means environment variable or task input.
2. {CCACHE_DIR} must be consistent with {path}. Ccache produces caches
in {CCACHE_DIR} and Cache@2 download cache into {path} and tar {path}
and upload it.
3. Protobuf changes with deps.txt so that it would reduce the storage
size.
4. Next step, we may split the compilation into 2 steps, one for
external dependencies and another for ORT.
2023-03-30 23:22:11 +08:00
..
android Update python 3.11 and remove 3.7 for Linux (#15214) 2023-03-27 14:46:30 -07:00
apple Remove protobuf submodule (#15190) 2023-03-27 10:35:49 -07:00
azure-pipelines Improve 2 cache tasks in one pipeline yaml (#15267) 2023-03-30 23:22:11 +08:00
js
linux Update protobuf to 3.21.x (#15245) 2023-03-29 14:08:18 -07:00
pai Enable ccache for HIP objects (#14465) 2023-01-28 22:34:24 +08:00
windows Update protobuf to 3.21.x (#15245) 2023-03-29 14:08:18 -07:00
Doxyfile_csharp.cfg