Skip to content

Commit 561418d

Browse files
committed
1st version
0 parents  commit 561418d

File tree

7 files changed

+1078
-0
lines changed

7 files changed

+1078
-0
lines changed

.github/workflows/ant.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: [ 'v*.*' ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
test:
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macOS-latest]
15+
java: [ 8 ]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-java@v1
20+
with:
21+
java-version: ${{ matrix.java }}
22+
java-package: jdk
23+
- uses: r-lib/actions/setup-r@v1
24+
with:
25+
r-version: 3.6
26+
- if: matrix.os == 'macos-latest'
27+
run: ln -s /Library/Frameworks/R.framework/Versions/3.6 /Library/Frameworks/R.framework/Versions/3.5
28+
- uses: r-lib/actions/setup-pandoc@v1
29+
- run: |
30+
WD=$PWD
31+
cd ..
32+
git clone https://github.com/Funz/funz-profile
33+
cd $WD
34+
shell: bash
35+
- if: matrix.os == 'ubuntu-latest'
36+
run: sudo apt-get -y install libharfbuzz-dev libfribidi-dev libcurl4-openssl-dev
37+
- run: ant -noinput -buildfile build.xml test
38+
id: anttest
39+
continue-on-error: true
40+
- if: steps.anttest.outcome != 'success'
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: artifacts-${{ matrix.os }}-${{ matrix.java }}
44+
path: |
45+
*.txt
46+
*.log
47+
*.out
48+
*.Rout
49+
*.Rmd
50+
*.md
51+
*.html
52+
- if: steps.anttest.outcome != 'success'
53+
run: exit 1
54+
55+
release:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: actions/setup-java@v1
60+
with:
61+
java-version: 1.8
62+
java-package: jdk
63+
- run: |
64+
WD=$PWD
65+
cd ..
66+
git clone https://github.com/Funz/funz-profile
67+
cd $WD
68+
- run: |
69+
ant clean dist
70+
cd dist; zip -r ../algorithm-PSO.zip *; cd ..
71+
ant install
72+
zip -r FunzR-PSO.zip FunzR-PSO
73+
- uses: actions/upload-artifact@v2
74+
with:
75+
path: dist
76+
- uses: softprops/action-gh-release@v1
77+
if: startsWith(github.ref, 'refs/tags/')
78+
with:
79+
files: ./*-PSO.zip
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
83+
84+

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[![.github/workflows/ant.yml](https://github.com/Funz/algorithm-PSO/actions/workflows/ant.yml/badge.svg)](https://github.com/Funz/algorithm-PSO/actions/workflows/ant.yml)
2+
3+
# Funz algorithm: PSO
4+
5+
* PSO : Particle Swarm Optimization<br/>http://www.particleswarm.info/standard\_pso\_2007.c
6+
* authors: Yann Richet <[email protected]>, Claus Bendtsen <[email protected]>
7+
* tags: Optimization
8+
* options: maxit='20'
9+
10+
11+
![Analytics](https://ga-beacon.appspot.com/UA-109580-20/algorithm-PSO)

build.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<project name="algorithm-PSO" default="test" basedir=".">
2+
3+
<property name="algorithm.name" value="PSO" />
4+
<property name="install.dir" value="${basedir}/FunzR-${algorithm.name}" />
5+
6+
<property name="build_algorithm.xml" location="../funz-profile/build_algorithm.xml" />
7+
<import file="${build_algorithm.xml}"/>
8+
9+
<target name="dist" depends="dist-algorithm"/> <!-- dist-ioplugin: copy just the plugin ascii files -->
10+
11+
<target name="test" depends="test-algorithm"/> <!-- test-ioplugin: test the plugin ascii files -->
12+
13+
<target name="super.install" depends="install"/>
14+
<target name="super.clean" depends="clean"/>
15+
16+
</project>

0 commit comments

Comments
 (0)