forked from kakwa/libemf2svg
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Alpine build * Implement release workflow Co-authored-by: Maxim Samsonov <m.samsonov@computer.org>
- Loading branch information
Showing
10 changed files
with
186 additions
and
59 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,55 @@ | ||
name: Alpine build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- '.github/workflows/macos-build.yml' | ||
- '.github/workflows/ubuntu-build.yml' | ||
- '.github/workflows/ubuntu-aarch64.yml' | ||
- '.github/workflows/windows-build.yml' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
Alpine-build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: alpine:latest | ||
|
||
steps: | ||
- name: Install packages | ||
run: | | ||
apk --no-cache --upgrade add build-base cmake libxml2-dev \ | ||
libxml2-utils libpng-dev freetype-dev fontconfig-dev git valgrind \ | ||
argp-standalone font-noto-hebrew font-noto-arabic | ||
# font-noto-hebrew font-noto-arabic -- this is required for testing only | ||
# [ tests/resources/emf/test-183.emf ] | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
env: | ||
CC: gcc | ||
CXX: g++ | ||
run: cmake -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
|
||
- name: Build | ||
run: | | ||
cmake --build . --config ${{env.BUILD_TYPE}} | ||
pwd | ||
ls -l | ||
- name: Test well formed files | ||
run: ./tests/resources/check_correctness.sh -r -s | ||
|
||
- name: Test corrupted files | ||
run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-corrupted/ -xN | ||
|
||
- name: Test EA files | ||
run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-ea/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Collect | ||
run: | | ||
cd .. | ||
rm -rf libemf2svg/.git* | ||
rm -rf libemf2svg/vcpkg/.git* | ||
tar cvzf libemf2svg.tar.gz libemf2svg | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{github.workspace}}/../libemf2svg.tar.gz |
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
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,3 +1,3 @@ | ||
[submodule "vcpkg"] | ||
path = vcpkg | ||
url = git@github.com:microsoft/vcpkg.git | ||
url = https://github.com/microsoft/vcpkg.git |
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