Skip to content

Commit

Permalink
GitHub Actions artifact cache looking at upstream always for artifact…
Browse files Browse the repository at this point in the history
…s. fixed clean artifact on non upstream
  • Loading branch information
danoli3 committed Aug 16, 2024
1 parent 283e621 commit 657ece2
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 100
per_page: 50
});
const target = process.env.TARGET;
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 20
per_page: 50
});
const artifactNamesToDownload = ['libs-ios-ios-1', 'libs-ios-ios-2', 'libs-ios-ios-3'];
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 20
per_page: 50
});
const max=3;
const artifactNamesToDownload = ['libs-macos-osx-1', 'libs-macos-osx-2', 'libs-macos-osx-3'];
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 20
per_page: 50
});
const artifactNamesToDownload = ['libs-tvos-tvos-1', 'libs-tvos-tvos-2', 'libs-tvos-tvos-3'];
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-vs2022-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
sort: 'created_at',
direction: 'desc',
per_page: 48
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 50
});
const target = process.env.TARGET;
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-vs2022-arm64ec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
sort: 'created_at',
direction: 'desc',
per_page: 30
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 50
});
const target = process.env.TARGET;
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-vs2022-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
sort: 'created_at',
direction: 'desc',
per_page: 30
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 50
});
const target = process.env.TARGET;
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-xcframework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ jobs:
// List all artifacts for the repository
const artifacts = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
owner: 'openframeworks',
repo: 'apothecary',
sort: 'created_at',
direction: 'desc',
per_page: 30
per_page: 50
});
const max=9;
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clean-up-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
shell: msys2 {0}
steps:
- name: Log old artifacts for potential deletion
if: github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding')
uses: actions/github-script@v7.0.1
env:
GH_TOKEN: ${{ secrets.CI_SECRET }}
Expand Down

0 comments on commit 657ece2

Please sign in to comment.