-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
49 lines (46 loc) · 1.87 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "doxygen-install"
description: "Installs Doxygen"
inputs:
version:
description: "The Doxygen version to install"
required: false
default: "1.12.0"
runs:
using: "composite"
steps:
- name: Export Doxygen version in environment
shell: bash
run: |
echo "DOXYGEN_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
- name: "Linux installation"
if: runner.os == 'Linux'
shell: bash
run: |
wget https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
tar xzvf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
cd doxygen-${DOXYGEN_VERSION}
sudo make install
cd ..
rm -rf doxygen-${DOXYGEN_VERSION}* # Clean up
- name: "Windows installation"
if: runner.os == 'Windows'
shell: bash
run: |
mkdir doxygen-${DOXYGEN_VERSION}-windows
cd doxygen-${DOXYGEN_VERSION}-windows
curl -kLSs https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.windows.x64.bin.zip -o doxygen.zip
unzip doxygen.zip
cp * c:\\Windows
cd ..
rm -rf doxygen-${DOXYGEN_VERSION}-windows # Clean up
- name: "MacOS installation"
if: runner.os == 'MacOS'
shell: bash
run: |
wget https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/Doxygen-${DOXYGEN_VERSION}.dmg
sudo hdiutil attach Doxygen-${DOXYGEN_VERSION}.dmg
sudo cp /Volumes/Doxygen/Doxygen.app/Contents/MacOS/Doxywizard /usr/local/bin
sudo cp /Volumes/Doxygen/Doxygen.app/Contents/Resources/doxygen /usr/local/bin
sudo cp /Volumes/Doxygen/Doxygen.app/Contents/Resources/doxyindexer /usr/local/bin
sudo hdiutil detach /Volumes/Doxygen
rm Doxygen-${DOXYGEN_VERSION}.dmg # Clean up