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

Non lazy artifacts #9

Merged
merged 1 commit into from
Jan 10, 2024
Merged
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
12 changes: 5 additions & 7 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
[[PSRIO]]
arch = "x86_64"
git-tree-sha1 = "026d7889b356e48849a1e271c034a75e4c3d3ff8"
lazy = true
os = "windows"

[[PSRIO.download]]
sha256 = "d09631547b415d8a1d5a065bfe576bf519536e6d0bd421ba18ceb341bd7671f3"
url = "https://julia-artifacts.s3.amazonaws.com/psrio-distribution/d0963-0c868/psrio-distribution-windows.tgz"
sha256 = "57229523e9c2f5327e7ec7e6a577e8052fc151c5543f89e01f4b5b519cd80730"
url = "https://julia-artifacts.s3.amazonaws.com/psrio-distribution/57229-c129c/psrio-distribution-windows.tgz"
[[PSRIO]]
arch = "x86_64"
git-tree-sha1 = "ea63ce90ad677f3d047a1df3aad18317e5542ce2"
lazy = true
git-tree-sha1 = "f022ebf5cc4343b756d99f6a6155d05d86ff7f5c"
libc = "glibc"
os = "linux"

[[PSRIO.download]]
sha256 = "0c8684c8d58a644973759dab09c6551286a10ff7facc93c67689c1e88a970976"
url = "https://julia-artifacts.s3.amazonaws.com/psrio-distribution/d0963-0c868/psrio-distribution-linux.tgz"
sha256 = "c129cc8b645918051511afc859bad31fa0700e470b02b3cfa4f78d7662fcb267"
url = "https://julia-artifacts.s3.amazonaws.com/psrio-distribution/57229-c129c/psrio-distribution-linux.tgz"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "28cd61d8-bd87-4892-a734-3497164865b3"
version = "0.27.0"

[deps]
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

[compat]
julia = "1"
Expand Down
8 changes: 2 additions & 6 deletions scripts/update_artifacts.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,17 @@ CD %BASE_PATH%psrio-distribution
COPY %BASE_PATH%psrio-distribution\linux\PSRIO.ver %BASE_PATH%\PSRIO.ver

ECHO "Cloning ArtifactsGenerator"
git clone --depth=1 -b 0.3.0 "https://github.com/psrenergy/ArtifactsGenerator.jl.git" "%BASE_PATH%ArtifactsGenerator.jl"

COPY "%BASE_PATH%\ArtifactsGenerator.jl\Project.toml" "%BASE_PATH%Project.toml"
git clone --depth=1 -b 0.5.0 "https://github.com/psrenergy/ArtifactsGenerator.jl.git" "%BASE_PATH%ArtifactsGenerator.jl"

ECHO "Updating artifatcs"
CALL %JULIA_161% --color=yes --project %BASE_PATH%update_artifacts.jl "%BASE_PATH%psrio-distribution" "psrio-distribution" "PSRIO" "%BASE_PATH%../Artifacts.toml" "%AWS_KEY%" "%SECRET_AWS_KEY%"
CALL %JULIA_161% --color=yes --project=%BASE_PATH%ArtifactsGenerator.jl %BASE_PATH%update_artifacts.jl "%BASE_PATH%psrio-distribution" "psrio-distribution" "PSRIO" "%BASE_PATH%../Artifacts.toml" "%AWS_KEY%" "%SECRET_AWS_KEY%"
IF %ERRORLEVEL% NEQ 0 (
EXIT 1
)

ECHO "Cleaning directory"
RMDIR /S /Q "%BASE_PATH%\psrio-distribution"
RMDIR /S /Q "%BASE_PATH%\ArtifactsGenerator.jl"
DEL /q "%BASE_PATH%\Project.toml"
DEL /q "%BASE_PATH%\Manifest.toml"

ECHO "Testing package"
%JULIA_161% --color=yes --project="%BASE_PATH%.." -e "import Pkg; Pkg.test()"
Expand Down
2 changes: 1 addition & 1 deletion src/PSRIO.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module PSRIO

using LazyArtifacts
using Artifacts

import Base.run

Expand Down
Loading