Skip to content

Commit

Permalink
2024.03.28-00:43
Browse files Browse the repository at this point in the history
  • Loading branch information
slankdev committed Mar 27, 2024
1 parent cbd5ce4 commit 79817a8
Showing 1 changed file with 4 additions and 40 deletions.
44 changes: 4 additions & 40 deletions .github/workflows/binary_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,52 +26,16 @@ jobs:
result-encoding: string
script: |
const fs = require("fs");
data = fs.readFileSync('./.github/workflows/editme.json', "utf8");
data2 = JSON.parse(data);
for (let i = 0; i < data2.binaries.length; i++) {
data2.binaries[i].builder = 'ubuntu-22.04'
}
return JSON.stringify(data2.binaries);
# fs.readFile('./.github/workflows/editme.json', "utf8", (error, data) => {
# if (error) {
# console.log(error);
# return;
# }
# console.log(JSON.parse(data));
# });
# console.log('slankdev');
# const fs = require('fs');
# const yaml = require('js-yaml');
# const yamlText = fs.readFileSync('.github/workflows/editme.yaml', 'utf8');
# out = yaml.safeLoad(yamlText);
# return out;

- name: Get result
run: echo "${{steps.setmatrix.outputs.result}}"
file = fs.readFileSync('./.github/workflows/editme.json', "utf8");
jsondata = JSON.parse(file);
return JSON.stringify(jsondata.binaries);
build:
runs-on: ${{ matrix.builder }}
runs-on: ubuntu-latest
needs: preprocess
strategy:
matrix:
include: ${{fromJson(needs.preprocess.outputs.matrix)}}
# matrix:
# include:
# - builder: ubuntu
# os: linux
# arch: amd64
# name: vtyang
# go: 1.17
# - builder: ubuntu-22.04
# os: linux
# arch: arm64
# name: vtyang
# go: 1.17
# - builder: ubuntu-22.04
# os: darwin
# arch: arm64
# name: vtyang
# go: 1.17

steps:
- name: set up Go
Expand Down

0 comments on commit 79817a8

Please sign in to comment.