Skip to content

Commit

Permalink
Add Julia GitHub Actions. (#4123)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee authored Mar 27, 2024
1 parent c4d2891 commit 967db7f
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/lin-auto-jl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: lin auto jl

on:
workflow_dispatch:
push:
pull_request:
branches: [ develop ]
paths-ignore:
- '.github/CODEOWNERS'
- '.github/FUNDING.yml'
- 'doc/**'
- 'release_docs/**'
- 'ACKNOWLEDGEMENTS'
- 'COPYING**'
- '**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
Julia:
name: Julia
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: HDFGroup/hdf5
path: hdf5
- name: Install HDF5
run: |
cd hdf5
./autogen.sh
./configure --prefix=/tmp
make -j
make install
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
arch: 'x64'
- uses: actions/checkout@v4
with:
repository: JuliaIO/HDF5.jl
path: .

- name: Generate LocalPreferences
run: |
echo '[HDF5]' >> LocalPreferences.toml
echo 'libhdf5 = "/tmp/lib/libhdf5.so"' >> LocalPreferences.toml
echo 'libhdf5_hl = "/tmp/lib/libhdf5_hl.so"' >> LocalPreferences.toml
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
JULIA_DEBUG: Main
61 changes: 61 additions & 0 deletions .github/workflows/lin-jl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: lin jl

on:
workflow_dispatch:
push:
pull_request:
branches: [ develop ]
paths-ignore:
- '.github/CODEOWNERS'
- '.github/FUNDING.yml'
- 'doc/**'
- 'release_docs/**'
- 'ACKNOWLEDGEMENTS'
- 'COPYING**'
- '**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
Julia:
name: Julia
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: HDFGroup/hdf5
path: hdf5
- name: Install HDF5
run: |
cd hdf5
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/tmp ..
make -j
make install
cd ..
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
arch: 'x64'
- uses: actions/checkout@v4
with:
repository: JuliaIO/HDF5.jl
path: .

- name: Generate LocalPreferences
run: |
echo '[HDF5]' >> LocalPreferences.toml
echo 'libhdf5 = "/tmp/lib/libhdf5.so"' >> LocalPreferences.toml
echo 'libhdf5_hl = "/tmp/lib/libhdf5_hl.so"' >> LocalPreferences.toml
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
JULIA_DEBUG: Main

0 comments on commit 967db7f

Please sign in to comment.