<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build_actions(self):
 """Create an ActionCollection that will perform sanity checks, copy the file, create a database entry and perform cleanup actions and in case of a failure clean everything up. :param work: the workfile :type work: :class:`JB_File` :param release: the releasefile :type release: :class:`JB_File` :param checks: the action collection object with sanity checks It should accept a :class:`JB_File` as object for execute. :type checks: :class:`ActionCollection` :param cleanup: a action collection object that holds cleanup actions for the given file. It should accept a :class:`JB_File` as object for execute. :type cleanup: :class:`ActionCollection` :param comment: comment for the release :type comment: :class:`str` :returns: An ActionCollection ready to execute. :rtype: :class:`ActionCollection` :raises: None """

        checkau = ActionUnit("Sanity Checks",
                             "Check the workfile. If the file is not conform, ask the user to continue.",
                             self.sanity_check)
        copyau = ActionUnit("Copy File",
                            "Copy the workfile to the releasefile location.",
                            self.copy,
                            depsuccess=[checkau])
        dbau = ActionUnit("Create DB entry",
                          "Create an entry in the database for the releasefile",
                          self.create_db_entry,
                          depsuccess=[copyau])
        cleanau = ActionUnit("Cleanup",
                             "Cleanup the releasefile. If something fails, ask the user to continue.",
                             self.cleanup,
                             depsuccess=[dbau])
        deletefau1 = ActionUnit("Delete the releasefile.",
                                "In case the db entry creation fails, delete the releasefile.",
                                self.delete_releasefile,
                                depfail=[dbau])
        deletefau2 = ActionUnit("Delete the releasefile.",
                                "In case the cleanup fails, delete the releasefile.",
                                self.delete_releasefile,
                                depsuccess=[copyau],
                                depfail=[cleanau])
        deletedbau = ActionUnit("Delete the database entry.",
                                "In case the cleanup fails, delete the database entry",
                                self.delete_db_entry,
                                depsuccess=[dbau],
                                depfail=[cleanau])
        return ActionCollection([checkau, copyau, dbau, cleanau, deletefau1, deletefau2, deletedbau])