From 4d6c9e56748a28c56d961e65c92e4ef1582a01cb Mon Sep 17 00:00:00 2001 From: Raffaele Intorcia Date: Sun, 28 Apr 2024 23:03:45 +0200 Subject: [PATCH] Script for automation --- .circleci/config.yml | 20 ++++++++++++++++++ .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .github/workflows/main.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e6e5544 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,20 @@ +# Java Gradle CircleCI 2.0 configuration file +version: 2 +jobs: + build: + branches: + only: + - develop + - master + docker: + - image: maciejmalecki/c64libci:0.1.4 + + working_directory: ~/repo + + environment: + JVM_OPTS: -Xms256m -Xmx768m + TERM: dumb + + steps: + - checkout + - run: ./gradlew diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4a8c69f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: Doxygen Action + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Convert doxygen liked version + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - run: + python KickAssemblerToDoxygen.py ./lib/ + + - name: Doxygen Action + uses: mattnotmitt/doxygen-action@v1.1.0 + with: + # Path to Doxyfile + doxyfile-path: "./Doxyfile" + # Working directory + working-directory: "." + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + # Default Doxyfile build documentation to html directory. + # Change the directory if changes in Doxyfile + publish_dir: ./html