Skip to content

Commit

Permalink
ci: fix downloading of artifacts + docker cache [skip test]
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 7, 2025
1 parent a03cb7e commit 06230ec
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: CI
on:
pull_request:
push:
branches:
- master
- main
- dev
tags:
- "*"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -255,6 +251,8 @@ jobs:
file: ./dev/docker/ci/${{ matrix.container.file }}
push: ${{ github.event_name != 'pull_request' }}
tags: aminya/${{ matrix.container.image }}:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}:latest
cache-from: type=registry,ref=user/app:latest
cache-to: type=inline

- name: Test
uses: docker/build-push-action@v6
Expand All @@ -266,19 +264,20 @@ jobs:

Release:
if: startsWith(github.ref, 'refs/tags/')
needs: [Build, BuildExecutable, Test, Docker]
needs: [Build, BuildExecutable, Test]
runs-on: ubuntu-24.04
steps:
- name: Download All Artifacts
- name: Download Executables
uses: actions/download-artifact@v4
with:
pattern: exe-*
path: exe/

- name: Place Artifacts
shell: bash
run: |
mv -v ./dist/ ./dist-artifacts
mv -v ./dist-artifacts/* ./
chmod +x -R ./exe/
- name: Download Dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Draft the release
uses: meeDamian/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/llvm/llvm_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { arm64, armv7, powerpc64le, sparc64, sparcv9, x86, x86_64 } from "../uti
import { hasDnf } from "../utils/env/hasDnf.js"
import { isUbuntu } from "../utils/env/isUbuntu.js"
import { ubuntuVersion } from "../utils/env/ubuntu_version.js"
import { extractExe, extractTarByExe, getArchiveType, getExtractFunction } from "../utils/setup/extract.js"
import { extractTarByExe, getArchiveType, getExtractFunction } from "../utils/setup/extract.js"
import type { PackageInfo } from "../utils/setup/setupBin.js"

const dirname = typeof __dirname === "string" ? __dirname : path.dirname(fileURLToPath(import.meta.url))
Expand Down

0 comments on commit 06230ec

Please sign in to comment.