Skip to content

Commit 54d64a9

Browse files
committed
Debug github action script
1 parent 301bda2 commit 54d64a9

1 file changed

Lines changed: 37 additions & 37 deletions

File tree

.github/workflows/debos.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,6 @@ jobs:
4444
with:
4545
fetch-depth: 0
4646

47-
# make sure we have latest packages first, to get latest fixes and to
48-
# avoid an automated update while we're building
49-
- name: Update OS packages
50-
run: |
51-
set -x
52-
apt update
53-
apt -y upgrade
54-
apt -y full-upgrade
55-
# debos is needed to build recipes, mtools is needed for the flash
56-
# recipe
57-
apt -y install debos mtools
58-
5947
- name: Download links to Linux deb and U-Boot for RB1
6048
uses: actions/github-script@v7
6149
with:
@@ -75,31 +63,43 @@ jobs:
7563
return artifact.name == "linux-deb-links"
7664
})[0];
7765
# download both in memory
78-
let linux_deb_dl =
79-
await github.rest.actions.downloadArtifact({
80-
owner: context.repo.owner,
81-
repo: context.repo.repo,
82-
artifact_id: linux_deb.id,
83-
archive_format: 'zip',
84-
});
85-
let u_boot_rb1_dl =
86-
await github.rest.actions.downloadArtifact({
87-
owner: context.repo.owner,
88-
repo: context.repo.repo,
89-
artifact_id: u_boot_rb1.id,
90-
archive_format: 'zip',
91-
});
92-
# write files under temp dir
93-
const fs = require('fs');
94-
const path = require('path');
95-
const temp = '${{ runner.temp }}/artifacts';
96-
if (!fs.existsSync(temp)){
97-
fs.mkdirSync(temp);
98-
}
99-
fs.writeFileSync(path.join(temp, 'linux_deb_links.zip'),
100-
Buffer.from(linux_deb_dl.data));
101-
fs.writeFileSync(path.join(temp, 'u_boot_rb1_links.zip'),
102-
Buffer.from(u_boot_rb1_dl.data));
66+
# let linux_deb_dl =
67+
# await github.rest.actions.downloadArtifact({
68+
# owner: context.repo.owner,
69+
# repo: context.repo.repo,
70+
# artifact_id: linux_deb.id,
71+
# archive_format: 'zip',
72+
# });
73+
# let u_boot_rb1_dl =
74+
# await github.rest.actions.downloadArtifact({
75+
# owner: context.repo.owner,
76+
# repo: context.repo.repo,
77+
# artifact_id: u_boot_rb1.id,
78+
# archive_format: 'zip',
79+
# });
80+
# # write files under temp dir
81+
# const fs = require('fs');
82+
# const path = require('path');
83+
# const temp = '${{ runner.temp }}/artifacts';
84+
# if (!fs.existsSync(temp)){
85+
# fs.mkdirSync(temp);
86+
# }
87+
# fs.writeFileSync(path.join(temp, 'linux_deb_links.zip'),
88+
# Buffer.from(linux_deb_dl.data));
89+
# fs.writeFileSync(path.join(temp, 'u_boot_rb1_links.zip'),
90+
# Buffer.from(u_boot_rb1_dl.data));
91+
92+
# make sure we have latest packages first, to get latest fixes and to
93+
# avoid an automated update while we're building
94+
- name: Update OS packages
95+
run: |
96+
set -x
97+
apt update
98+
apt -y upgrade
99+
apt -y full-upgrade
100+
# debos is needed to build recipes, mtools is needed for the flash
101+
# recipe
102+
apt -y install debos mtools
103103
104104
- name: Build debos recipe
105105
run: |

0 commit comments

Comments
 (0)