Skip to content

Commit

Permalink
Add Julia GitHub Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Mar 12, 2024
1 parent 27f7318 commit 4e6aa04
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/lin-auto-jl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: lin auto jl

on:
push:
branches:
- develop

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
48 changes: 48 additions & 0 deletions .github/workflows/lin-jl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: lin jl

on:
push:
branches:
- develop

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 4e6aa04

Please sign in to comment.