From a108aae96657779ecaea4ec6dd4194e45f0a21db Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sat, 21 Jan 2023 18:30:52 +0100 Subject: [PATCH] Replace travis with github actions --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .travis.yml | 16 ---------------- QLMobi.xcodeproj/project.pbxproj | 4 ++-- 3 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ec6688b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - name: Install libmobi build dependencies + run: brew install autoconf automake libtool + - name: Fetch libmobi + run: git clone https://github.com/bfabiszewski/libmobi.git + - name: Build and install libmobi + run: ( cd libmobi && ./autogen.sh && ./configure && make && sudo make install ) + - name: Build QLMobi + run: xcodebuild diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d5db445..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -os: -- osx -language: objective-c -compiler: -- clang -before_install: -- brew update > /dev/null -- brew outdated autoconf || brew upgrade autoconf -- brew outdated automake || brew upgrade automake -- brew outdated libtool || brew upgrade libtool -- git clone https://github.com/bfabiszewski/libmobi.git -- ( cd libmobi && ./autogen.sh && ./configure && make && sudo make install ) -- git config --global user.name "Travis CI (QLMobi)" -- git config --global user.email $HOSTNAME":not-for-mail@travis-ci.com" -script: -- xcodebuild diff --git a/QLMobi.xcodeproj/project.pbxproj b/QLMobi.xcodeproj/project.pbxproj index f7be48a..da24a19 100644 --- a/QLMobi.xcodeproj/project.pbxproj +++ b/QLMobi.xcodeproj/project.pbxproj @@ -33,13 +33,13 @@ /* Begin PBXFileReference section */ 15502B011BE89AD100372AB3 /* debug.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = debug.h; sourceTree = ""; }; 15502B041BE8A94A00372AB3 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; }; + 155AF9BB297C4C1100B59D24 /* build.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; name = build.yml; path = .github/workflows/build.yml; sourceTree = SOURCE_ROOT; }; 1573312C1BE0E1D400455426 /* BAFHtml.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BAFHtml.m; sourceTree = ""; }; 1573312E1BE0E20B00455426 /* BAFHtml.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BAFHtml.h; sourceTree = ""; }; 15ACCE431BE7F5750070C76F /* BAFMobiPart.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BAFMobiPart.m; sourceTree = ""; }; 15ACCE451BE7F5A90070C76F /* BAFMobiPart.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BAFMobiPart.h; sourceTree = ""; }; 15ACCE461BE7F7FA0070C76F /* BAFXpath.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BAFXpath.m; sourceTree = ""; }; 15ACCE481BE7F8080070C76F /* BAFXpath.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BAFXpath.h; sourceTree = ""; }; - 15CDE37E1BEA1DED0009B93F /* .travis.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .travis.yml; sourceTree = SOURCE_ROOT; }; 15DD6F681BA48FF400336FF5 /* QLMobi.qlgenerator */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QLMobi.qlgenerator; sourceTree = BUILT_PRODUCTS_DIR; }; 15DD6F6C1BA48FF400336FF5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 15DD6F6D1BA48FF400336FF5 /* GenerateThumbnailForURL.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GenerateThumbnailForURL.m; sourceTree = ""; }; @@ -107,7 +107,7 @@ 15DD6F6B1BA48FF400336FF5 /* Supporting Files */ = { isa = PBXGroup; children = ( - 15CDE37E1BEA1DED0009B93F /* .travis.yml */, + 155AF9BB297C4C1100B59D24 /* build.yml */, 15502B041BE8A94A00372AB3 /* README.md */, 15DD6F6C1BA48FF400336FF5 /* Info.plist */, );