Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: CI #14

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
GITHUB_TOKEN: ${{ secrets.GIST_TESTING_TOKEN }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ gh_cli_jll = "2"
julia = "1.6"

[extras]
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "TOML"]
test = ["Test", "Artifacts", "Documenter", "TOML"]
43 changes: 20 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,23 @@ julia> add_artifact!(
SHA1("6c460cf2eccecd24499618112adbbe7e403fa1ee")

julia> import Pkg; Pkg.ensure_artifact_installed("JuliaMono", "Artifacts.toml")
Downloaded artifact: JuliaMono
Downloaded artifact: JuliaMono
Downloading artifact: JuliaMono
Downloading artifact: JuliaMono
"/home/simeon/.julia/artifacts/6c460cf2eccecd24499618112adbbe7e403fa1ee"

julia> artifact"JuliaMono"
"/home/simeon/.julia/artifacts/6c460cf2eccecd24499618112adbbe7e403fa1ee"

julia> run(`ls $ans`);
JuliaMono-Black.ttf JuliaMono-Bold.ttf JuliaMono-Light.ttf JuliaMono-RegularLatin.ttf LICENSE
JuliaMono-BoldLatin.ttf JuliaMono-ExtraBold.ttf JuliaMono-Medium.ttf JuliaMono-Regular.ttf
JuliaMono-Black.ttf
JuliaMono-BoldLatin.ttf
JuliaMono-Bold.ttf
JuliaMono-ExtraBold.ttf
JuliaMono-Light.ttf
JuliaMono-Medium.ttf
JuliaMono-RegularLatin.ttf
JuliaMono-Regular.ttf
LICENSE
```

### Archive a directory and upload it to gist
Expand All @@ -61,34 +68,24 @@ julia> gist = upload_to_gist(artifact_id)
- Creating gist...
✓ Created gist
Cloning into '.'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.
Switched to a new branch '__tmp__'
[__tmp__ (root-commit) f5a58a9] Initial commit
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at f5a58a9 Initial commit
[master 44dfe9a] Add files
[__tmp__ (root-commit) a1c4820] Initial commit
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
HEAD is now at a1c4820 Initial commit
[main 2b03e65] Add files
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 538e83d637ab07ada6d841aa2454e0d5af4e52b3.tar.gz
Counting objects: 5, done.
Delta compression using up to 128 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 455 bytes | 455.00 KiB/s, done.
Total 5 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done.
To gist.github.com:a9ceed430ff970412fc6606ef1b84b6a
+ 2668e40...44dfe9a master -> master (forced update)
To gist.github.com:4e2e8dacc2179149b047d6f60885389e
+ 5b04880...2b03e65 main -> main (forced update)
upload_to_gist(SHA1("538e83d637ab07ada6d841aa2454e0d5af4e52b3")) →

[538e83d637ab07ada6d841aa2454e0d5af4e52b3]
git-tree-sha1 = "538e83d637ab07ada6d841aa2454e0d5af4e52b3"

[[538e83d637ab07ada6d841aa2454e0d5af4e52b3.download]]
sha256 = "a530e9f7e371eeea4aa4fbce83a00ed32233b7766314670b1c0779eb46a7b68d"
url = "https://gist.github.com/tkf/a9ceed430ff970412fc6606ef1b84b6a/raw/538e83d637ab07ada6d841aa2454e0d5af4e52b3.tar.gz"
sha256 = "5f25c71dbebe1c7eeda5b2480360e5815ec530c22f27d1e7c4f87d73aac4aeb9"
url = "https://gist.github.com/simeonschaub/4e2e8dacc2179149b047d6f60885389e/raw/538e83d637ab07ada6d841aa2454e0d5af4e52b3.tar.gz"
```

You can copy-and-paste the printed artifact fragment into your `Artifacts.toml`
Expand Down
Loading