Coder Social home page Coder Social logo

About ccache and cache storage about ttk HOT 5 OPEN

mwestphal avatar mwestphal commented on June 12, 2024
About ccache and cache storage

from ttk.

Comments (5)

mwestphal avatar mwestphal commented on June 12, 2024

@CharlesGueunet

from ttk.

julien-tierny avatar julien-tierny commented on June 12, 2024

@pierre-guillou

from ttk.

pierre-guillou avatar pierre-guillou commented on June 12, 2024

Hi @mwestphal,

I'm the one that put these workflows into place. I used ccache on Ubuntu & macOS because at that time (3 years ago) I thought it was the simplest solution.

Note that we use sccache on Windows (it was quite a pain to make it work with CMake + clang-cl for OpenMP…). We stuck to an old version of sccache there to avoid a bug but I haven't tried with newer versions yet.

I decided to use GitHub releases to store ccache/sccache data for several reasons:

  • I didn't want PRs have a write access to the cache, only a read access
  • I wanted a centralized cache accessible to other repositories, in case developpers want to test their code in their fork without creating a PR to the main TTK repository
  • GitHub cache action did not seem to work well across different branches/PRs.

So I came up (in several iterations) with the current system that (mis)uses GitHub Releases to store ccache/sccache data at every commit / PR merge in the main repository.

Do you think the current action/cache supports these uses-cases?

We can switch from ccache to sccache in the Ubuntu & macOS jobs but sccache seems a bit more intrusive with its --start-server & --stop-server invocations. Is there any sccache feature that makes it more attractive than ccache?

from ttk.

mwestphal avatar mwestphal commented on June 12, 2024

Thanks for your answer.

I didn't want PRs have a write access to the cache, only a read access

Great, github cache behave the same

I wanted a centralized cache accessible to other repositories, in case developpers want to test their code in their fork without creating a PR to the main TTK repository

Great github cache behave the same

GitHub cache action did not seem to work well across different branches/PRs.

It works perfectly actions branches, forks and PRs.
It is designed by github for github users to do exactly that.

Do you think the current action/cache supports these uses-cases?

Yes

Is there any sccache feature that makes it more attractive than ccache?

Windows support

I hope that answers your questions. I cann explain how it works in F3D ci if needed. Maybe I'm missing something regarding TTK needs but so far I do really thing that github cacches + sccache works wonders.

from ttk.

mwestphal avatar mwestphal commented on June 12, 2024

BTW I'm thinking of adding a sccache github action that could be used out of the box, I'll let you know If I do that.

from ttk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.