Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Oct 8, 2024
1 parent 24fb9e0 commit f821e55
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ env:
IOMP: ''
COVERAGE: ''
jobs:
ubuntu-dev:
linux-dev:
if: ${{ !contains(github.event.head_commit.message, '[skip.linux]') && !contains(github.event.head_commit.message, '[skip.all]') }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 60
strategy:
matrix:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/dev-daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Daily
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
env:
SP_TIME: ''
ARTIFACT: ''
jobs:
linux-daily:
runs-on: self-hosted
timeout-minutes: 60
strategy:
matrix:
build: [ Debug ]
compiler: [ { c: gcc, cpp: g++, fortran: gfortran } ]
avx: [ OFF ]
vtk: [ OFF ]
mkl: [ OFF ]
steps:
- name: Clone
uses: actions/checkout@v4
- name: Golang
uses: actions/setup-go@v5
with:
cache: false
- name: Dependency
run: |
sudo apt-get update && sudo apt-get install libglvnd-dev dpkg-dev xz-utils
- name: Compile
run: |
go build Checker/updater.go
mkdir build && cd build
cmake -DCMAKE_C_COMPILER=${{ matrix.compiler.c }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cpp }} -DCMAKE_Fortran_COMPILER=${{ matrix.compiler.fortran }} -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DUSE_AVX2=${{ matrix.avx }} -DBUILD_MULTITHREAD=OFF -DCMAKE_INSTALL_PREFIX=dist ..
make install -j"$(nproc)" && make package
- name: Pack
run: |
cp updater build/dist/bin
echo "ARTIFACT=suanPan-linux-debug-gcc-no-avx-openblas.tar.gz" >> "$GITHUB_ENV"
tar czf ${{ env.ARTIFACT }} -C build/dist .
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: ${{ env.ARTIFACT }}
- name: Test
run: |
export LD_LIBRARY_PATH=/home/runner/work/suanPan/suanPan/build/dist/lib
./build/dist/bin/suanPan -v
- name: Upload
uses: Difegue/action-megacmd@master
with:
args: put ${{ env.ARTIFACT }} /suanPan
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
2 changes: 1 addition & 1 deletion .github/workflows/docker-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- cron: '0 5 2 * *'
workflow_dispatch:
jobs:
env-image:
ide-image:
runs-on: self-hosted
timeout-minutes: 240
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [ dev ]
jobs:
ubuntu-dev:
linux:
if: ${{ !contains(github.event.head_commit.message, '[skip.all]') }}
runs-on: self-hosted
timeout-minutes: 60
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ env:
SP_TIME: ''
ARTIFACT: ''
jobs:
ubuntu-master:
runs-on: ubuntu-22.04
linux-master:
runs-on: ubuntu-24.04
timeout-minutes: 60
strategy:
matrix:
Expand Down

0 comments on commit f821e55

Please sign in to comment.