Skip to content

Commit

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

on:
workflow_dispatch:
push:
pull_request:
branches: [ hdf5_1_14 ]
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:
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
60 changes: 60 additions & 0 deletions .github/workflows/lin-jl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: lin jl

on:
workflow_dispatch:
push:
pull_request:
branches: [ hdf5_1_14 ]
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:
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 f8296b0

Please sign in to comment.