mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Added GitHub workflows to run tests
Mostly taken from .travis.yml, biggest changes were around how to get the status updates to work. We can't use a token on PRs the same way we could in Travis, so instead we use a second workflow that checks every pull request for "status" artifacts, and create the actual statuses in the "workflow_run" event, where we have full access to repo secrets.
This commit is contained in:
		
							
								
								
									
										4
									
								
								lfs.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								lfs.c
									
									
									
									
									
								
							| @@ -4723,7 +4723,7 @@ static int lfs_rawmigrate(lfs_t *lfs, const struct lfs_config *cfg) { | ||||
|  | ||||
|                 lfs1_entry_tole32(&entry1.d); | ||||
|                 err = lfs_dir_commit(lfs, &dir2, LFS_MKATTRS( | ||||
|                         {LFS_MKTAG(LFS_TYPE_CREATE, id, 0)}, | ||||
|                         {LFS_MKTAG(LFS_TYPE_CREATE, id, 0), NULL}, | ||||
|                         {LFS_MKTAG_IF_ELSE(isdir, | ||||
|                             LFS_TYPE_DIR, id, entry1.d.nlen, | ||||
|                             LFS_TYPE_REG, id, entry1.d.nlen), | ||||
| @@ -4828,7 +4828,7 @@ static int lfs_rawmigrate(lfs_t *lfs, const struct lfs_config *cfg) { | ||||
|  | ||||
|         lfs_superblock_tole32(&superblock); | ||||
|         err = lfs_dir_commit(lfs, &dir2, LFS_MKATTRS( | ||||
|                 {LFS_MKTAG(LFS_TYPE_CREATE, 0, 0)}, | ||||
|                 {LFS_MKTAG(LFS_TYPE_CREATE, 0, 0), NULL}, | ||||
|                 {LFS_MKTAG(LFS_TYPE_SUPERBLOCK, 0, 8), "littlefs"}, | ||||
|                 {LFS_MKTAG(LFS_TYPE_INLINESTRUCT, 0, sizeof(superblock)), | ||||
|                     &superblock})); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user