Skip to content

Commit b381a25

Browse files
committed
patch
1 parent 5d63cf9 commit b381a25

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ jobs:
7575
env:
7676
CGO_ENABLED: 0 # Only android should build with cgo
7777
steps:
78-
- &checkout
79-
uses: actions/checkout@v4
80-
with:
81-
submodules: recursive
78+
- uses: &checkout actions/checkout@v4
8279
- &setupgo
8380
name: Setup Go
8481
uses: actions/setup-go@v5
@@ -158,7 +155,9 @@ jobs:
158155
include:
159156
- buildVariants: *buildVariants
160157
steps:
161-
- *checkout
158+
- uses: *checkout
159+
with:
160+
path: github-act-runner-full-src
162161
- *setupgo
163162
- name: Run go mod vendor for each target
164163
uses: actions/github-script@v7
@@ -170,13 +169,14 @@ jobs:
170169
...process.env,
171170
...env
172171
};
173-
await exec.exec(`go`, ['env'], { env: envVars });
174-
await exec.exec(`go`, ['mod', 'vendor'], { env: envVars });
172+
await exec.exec(`go`, ['env'], { env: envVars, cwd: './github-act-runner-full-src' });
173+
await exec.exec(`go`, ['mod', 'vendor'], { env: envVars, cwd: './github-act-runner-full-src' });
175174
}
176175
- name: Package
177176
run: |
178-
zip -r github-act-runner-full-src.zip . -x ".git/*" github-act-runner-full-src.zip github-act-runner-full-src.tar.gz
179-
tar --warning=no-file-changed --exclude=.git --exclude=github-act-runner-full-src.zip --exclude=github-act-runner-full-src.tar.gz -czvf github-act-runner-full-src.tar.gz .
177+
zip -r ../github-act-runner-full-src.zip . -x ".git/*"
178+
tar --exclude=.git -czvf ../github-act-runner-full-src.tar.gz .
179+
working-directory: github-act-runner-full-src
180180
- name: Create Signed Provenance
181181
uses: actions/attest-build-provenance@v1
182182
id: attest

0 commit comments

Comments
 (0)