Skip to content

Fix packagecompile CI #55

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

Merged
merged 12 commits into from
Jan 31, 2025
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
9 changes: 5 additions & 4 deletions .github/workflows/PackageCompiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
cache-to: type=registry,ref=danlooo/julia_package_compiler_dev:cache,mode=max

- name: Run Docker container
run: docker run \
-v $PWD:/work \
-u $(id -u ${USER}):$(id -g ${USER}) \
danlooo/julia_package_compiler_dev:latest /work
run: >
sudo chown -R $USER:$USER . &&
docker pull danlooo/julia_package_compiler_dev:latest &&
docker run -v $PWD:/work danlooo/julia_package_compiler_dev:latest /work &&
sudo chown -R $USER:$USER .

- name: Upload binaries
uses: actions/upload-artifact@v4
Expand Down
6 changes: 4 additions & 2 deletions packagecompiler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM julia:1.11.3-bookworm

WORKDIR /app
ENV JULIA_NUM_THREADS=auto
# unset threads see https://github.com/JuliaLang/PackageCompiler.jl/issues/990
ENV JULIA_NUM_THREADS=
ENV JULIA_DEPOT_PATH=/.julia

RUN apt-get update && apt-get install -y build-essential
COPY Project.toml /.julia/environments/v1.11/
COPY Project.toml ./
RUN julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.status()'
RUN chmod -R +r /.julia
COPY run.jl ./
ENTRYPOINT [ "./run.jl" ]
4 changes: 2 additions & 2 deletions packagecompiler/run.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env -S julia --threads=auto
#!/usr/bin/env -S julia --project=/app

using PackageCompiler

dir = ARGS
dir = ARGS[1]

PackageCompiler.create_app(dir, "$dir/packagecompiler/app";
precompile_statements_file="$dir/packagecompiler/precompile_statements.jl",
Expand Down
Loading