Merge pull request #27 from tensor4all/register-TCIAlgorithms-0.5.0 #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Registry Consistency | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
JULIA_PKG_USE_CLI_GIT: true | |
permissions: | |
contents: read | |
jobs: | |
check: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
# Keep this list in sync with `update_manifests.yml`. | |
- '1.10' | |
# - '1.11' # TODO: uncomment once Julia 1.11 is released | |
# - 'nightly' # TODO: uncomment this line | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v3.3.0 | |
- uses: julia-actions/setup-julia@f2258781c657ad9b4b88072c5eeaf9ec8c370874 # v2.0.0 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- run: write(ENV["GITHUB_OUTPUT"], "manifest_version=$(VERSION.major).$(VERSION.minor)") | |
shell: julia --color=yes --project=.ci/ {0} | |
id: manifest_version | |
- run: echo "The manifest is .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml" | |
- run: rm -rf .ci/Manifest.toml | |
- run: mv .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml .ci/Manifest.toml | |
- run: rm -rf .ci/Manifest.*.toml | |
- run: chmod 400 .ci/Project.toml | |
- run: chmod 400 .ci/Manifest.toml | |
if: ${{ matrix.version != 'nightly' }} | |
- name: Cache artifacts and packages | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
env: | |
cache-name: cache-artifacts | |
with: | |
path: | | |
~/.julia/artifacts | |
~/.julia/packages | |
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/.ci/Manifest.toml') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ env.cache-name }}- | |
${{ runner.os }}-test- | |
${{ runner.os }}- | |
- run: julia --color=yes -e 'import Pkg; Pkg.Registry.add("General")' | |
env: | |
JULIA_PKG_SERVER: "" | |
- run: julia --color=yes -e 'import Pkg; Pkg.Registry.update()' | |
- run: .ci/instantiate.sh | |
- run: julia --color=yes --project=.ci/ -e 'import Pkg; Pkg.precompile()' | |
- run: julia --project=.ci/ --color=yes -e 'import RegistryCI; RegistryCI.test(registry_deps=["https://github.com/JuliaRegistries/General"])' |