You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LibGit2.with(Pkg.GitTools.clone(url, path; header = "registry $reg from $(repr(url))", credentials = creds)) do repo end
265
-
end
266
-
end'
267
-
- julia -e 'using Pkg; Pkg.build(); Pkg.test("RegisterFit"; coverage=false)'
268
-
```
269
-
270
-
A similar script should be used with Appveyor (for testing on Windows). However because multiline commands and variables are nightmarish in Windows it's recommended that you move the Julia command above into a separate script that gets called from `appveyor.yml`. You can call the same script from `.travis.yml` as well to avoid code duplication. See https://github.com/HolyLab/ImagineInterface for an example.
271
-
272
-
- Assign your private ssh key which is paired with a public key in your Github account to the package in the Travis site.
273
-
* Copy the contents of the private key ('id_ecdsa' file generated in the 'To use git protocol in GitHub' section - not 'id_ecdsa.pub') in the local machine to your clipboard.
274
-
* Go to the setup page of the package in the Travis site you want to make to access this registry. (You can get there by choosing the package in your Travis repositories, clicking ‘More options’ button on the upper right corner and selecting ‘setting’ menu.)
275
-
* Assign the private key in the clipboard to the ‘SSH Key’ field.
253
+
```
254
+
name: CI
255
+
# setting ...
256
+
jobs:
257
+
test:
258
+
# setting ...
259
+
strategy:
260
+
# setting ...
261
+
steps:
262
+
- uses: actions/checkout@v3
263
+
- name: Setup SSH Keys and known_hosts # This section is required if the dependent packages include private packages in our Lab.
264
+
env:
265
+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
266
+
run: |
267
+
echo $HOME
268
+
mkdir -p ~/.ssh
269
+
ssh-keyscan github.com >> ~/.ssh/known_hosts
270
+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
271
+
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}" # This key must be pre-registered in the repository settings as a secrets first.
272
+
- uses: julia-actions/setup-julia@v1
273
+
with:
274
+
version: ${{ matrix.version }}
275
+
arch: ${{ matrix.arch }}
276
+
- uses: julia-actions/cache@v1
277
+
- name: registry_add # this section is required if the dependent packages include packages registered in the HolyLabRegistry.
278
+
run: julia -e 'using Pkg; pkg"registry add General https://github.com/HolyLab/HolyLabRegistry.git"'
279
+
- uses: julia-actions/julia-buildpkg@v1
280
+
env: # this environment setting is also required if the dependent packages include private packages in our Lab.
0 commit comments