forked from bbbbbr/gimp-plugin-reduce-color-depth
-
Notifications
You must be signed in to change notification settings - Fork 0
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
9215cc3
commit adc35d0
Showing
6 changed files
with
129 additions
and
7 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,46 @@ | ||
name: Build Linux | ||
|
||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# Triggers the workflow on push or pull request events but only for the develop branch | ||
# push: | ||
# branches: [ develop ] | ||
# pull_request: | ||
# branches: [ develop ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-20.04 | ||
name: Linux-x64 | ||
# - os: macos-13 | ||
# name: MacOS-x64 | ||
# - os: macos-14 | ||
# name: MacOS-arm64 | ||
steps: | ||
|
||
- name: Linux Depends | ||
if: matrix.name == 'Linux-x64' | ||
run: | | ||
sudo apt-get install libgimp2.0-dev | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build Linux | ||
if: (matrix.name == 'Linux-x64') | ||
shell: bash | ||
run: | | ||
make | ||
- name: Store build | ||
if: (matrix.name == 'Linux-x64') | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: gimp-reduce-colordepth_Linux_x64 | ||
path: plugin-gimp-reduce-colordepth |
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,60 @@ | ||
name: Build Windows | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
# push: | ||
# branches: [ main ] | ||
# pull_request: | ||
# branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
win: | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
include: [ | ||
{msystem: MINGW32, toolchain: mingw-w64-i686, version: x32 }, | ||
{msystem: MINGW64, toolchain: mingw-w64-x86_64, version: x64 }, | ||
] | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
steps: | ||
- name: Install msys2 build environment | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.msystem }} | ||
update: false | ||
install: base-devel git ${{ matrix.toolchain }}-toolchain ${{ matrix.toolchain }}-gimp | ||
|
||
|
||
- run: git config --global core.autocrlf input | ||
shell: bash | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Build plugin | ||
shell: msys2 {0} | ||
run: | | ||
echo $(gimptool-2.0 -n --build src/main.c) | sh | ||
mv main.exe plugin-gimp-reduce-colordepth-${{ matrix.version }}.exe | ||
ls | ||
- name: Get GIMP version | ||
shell: msys2 {0} | ||
run: echo "GIMPVER=$(pacman -Q ${{ matrix.toolchain }}-gimp | cut -d ' ' -f 2)" >> $GITHUB_ENV | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: plugin-gimp-reduce-colordepth_${{ env.GIMPVER }}_${{ matrix.version }} | ||
path: | | ||
./plugin-gimp-reduce-colordepth-${{ matrix.version }}.exe |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
plugin-gimp-reduce-colordepth | ||
*.zip | ||
*.7z | ||
*.gz | ||
*.exe | ||
obj/ | ||
src/reference/ |
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
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
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