-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec5771c
commit 49400d6
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
# Review gh actions docs if you want to further define triggers, paths, etc | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: yarn | ||
cache-dependency-path: docs/yarn.lock | ||
|
||
- name: Install dependencies | ||
working-directory: docs | ||
run: yarn install --frozen-lockfile | ||
- name: Build website | ||
working-directory: docs | ||
run: yarn build | ||
|
||
# Popular action to deploy to GitHub Pages: | ||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Build output to publish to the `gh-pages` branch: | ||
publish_dir: docs/build | ||
# The following lines assign commit authorship to the official | ||
# GH-Actions bot for deploys to `gh-pages` branch: | ||
# https://github.com/actions/checkout/issues/13#issuecomment-724415212 | ||
# The GH actions bot is used by default if you didn't specify the two fields. | ||
# You can swap them out with your own user credentials. | ||
user_name: github-actions[bot] | ||
user_email: 41898282+github-actions[bot]@users.noreply.github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: ci | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
USE_MINGW: 0 | ||
TARGET: java/build/libio_github_bernhardfritz_p8g_Sketch.dylib | ||
- os: ubuntu-latest | ||
USE_MINGW: 0 | ||
TARGET: java/build/libio_github_bernhardfritz_p8g_Sketch.so | ||
- os: ubuntu-latest | ||
USE_MINGW: 1 | ||
TARGET: java/build/io_github_bernhardfritz_p8g_Sketch.dll | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
cd java | ||
if [ "${{ matrix.USE_MINGW }}" = 1 ]; then | ||
sudo apt-get install -y mingw-w64 | ||
make CC=x86_64-w64-mingw32-gcc OS=Windows_NT JNI_MD_DIR=${JAVA_HOME}/include/linux | ||
else | ||
make | ||
fi | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: | | ||
${{ matrix.TARGET }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v3 | ||
- run: | | ||
mv build java | ||
cd java | ||
make build/p8g.jar | ||
rm -rf build/io | ||
zip -jr p8g.zip build | ||
- uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: java/p8g.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# p8g - 2D graphics library | ||
|
||
| Beginner friendly | Language-agnostic | Cross-platform | | ||
| :--------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------: | | ||
| p8g has been developed for individuals interested in getting into creative programming no matter the experience. | p8g is available for both C and Java allowing further language bindings to be developed. | p8g applications can be developed on and built for all major operating systems including Windows, Linux and macOS. | | ||
|
||
## Links | ||
|
||
- [Documentation](https://bernhardfritz.github.io/p8g) | ||
- [Discord](https://discord.gg/B3vrdJcra6) |