Skip to content

Commit 57a1691

Browse files
cknittcristianoc
authored andcommitted
Upload artifacts
1 parent f78d780 commit 57a1691

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ jobs:
5757
- name: Run tests (Windows)
5858
if: runner.os == 'Windows'
5959
run: opam exec -- node scripts/ciTest.js -mocha -theme
60+
61+
- name: Get artifact info
62+
id: get_artifact_info
63+
run: node .github/workflows/get_artifact_info.js
64+
65+
- name: Upload artifacts
66+
uses: actions/upload-artifact@v3
67+
with:
68+
name: ${{ steps.get_artifact_info.outputs.artifact_name }}
69+
path: ${{ steps.get_artifact_info.outputs.artifact_path }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const artifactPath =
2+
process.platform === "darwin" && process.arch === "arm64"
3+
? process.platform + process.arch
4+
: process.platform;
5+
6+
const artifactName = "binaries-" + artifactPath;
7+
8+
// Pass artifactPath and artifactName to subsequent GitHub actions
9+
console.log(`::set-output name=artifact_path::${artifactPath}`);
10+
console.log(`::set-output name=artifact_name::${artifactName}`);

0 commit comments

Comments
 (0)