xxxxxxxxxx
archive:
runs-on: ubuntu-latest
steps:
- name: Create file
run: |
touch index.txt
echo 'Hello Wordl Artifact!' >> index.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Archive file txt
path: index.txt
compression-level: 9
unarchive:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: Unarchive file txt
path: index.txt
- name: Print file
run: echo index.txt
xxxxxxxxxx
function groupBy(array, keyFn) {
return array.reduce((accumulator, value) => {
const key = keyFn(value);
if (!accumulator[key]) {
accumulator[key] = [value];
} else {
accumulator[key] = [value];
}
return accumulator;
}, {});
}
xxxxxxxxxx
A group of one, two, three, or four elements that represents each pixel of an image in client memory. Thus, in the context of a client memory image, a group and a pixel are the same thing.