Skip to content

Commit

Permalink
Create build action (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi authored Aug 9, 2023
1 parent d62cafd commit 873f3f1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 18 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
name: Build
runs-on: macos-latest
defaults:
run:
working-directory: version2/LifeSpace
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Check Environment
run: |
xcodebuild -version
swift --version
- name: Set Mapbox Credentials
run: |
echo "machine api.mapbox.com" >> ~/.netrc
echo "login mapbox" >> ~/.netrc
echo "password ${{ secrets.MAPBOX_TOKEN }}" >> ~/.netrc
chmod 0600 ~/.netrc
- name: Install Dependencies
run: |
gem install cocoapods
pod install
- name: Build
run: xcodebuild build -workspace LifeSpace.xcworkspace -scheme LifeSpace -destination 'platform=iOS Simulator,name=iPhone 13'
18 changes: 0 additions & 18 deletions version2/LifeSpace/LifeSpace.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@
607FACCD1AFB9204008FA782 /* Frameworks */,
607FACCE1AFB9204008FA782 /* Resources */,
8E0A43D0244A60D800656518 /* Embed Frameworks */,
275E587728656F3700799953 /* ShellScript */,
42AA8C733B751D1F5F207CAD /* [CP] Embed Pods Frameworks */,
);
buildRules = (
Expand Down Expand Up @@ -576,23 +575,6 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
275E587728656F3700799953 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nexport PATH=\"$PATH:/opt/homebrew/bin\"\nif which swiftlint > /dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
};
42AA8C733B751D1F5F207CAD /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down

0 comments on commit 873f3f1

Please sign in to comment.