Skip to content

Commit a58204e

Browse files
committed
Adds xcode-select-version action
1 parent 610fb1e commit a58204e

File tree

425 files changed

+96881
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

425 files changed

+96881
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @messeb

.github/CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first discuss the change you wish to make via issue,
4+
email, or any other method with the owners of this repository before making a change.
5+
6+
Please note we have a code of conduct, please follow it in all your interactions with the project.
7+
8+
## Pull Request Process
9+
10+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
11+
build.
12+
2. Update the README.md with details of changes to the interface, this includes new environment
13+
variables, exposed ports, useful file locations and container parameters.
14+
3. Increase the version numbers in any examples files and the README.md to the new version that this
15+
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
16+
4. You may merge the Pull Request in once you have the sign-off of one other developer, or if you
17+
do not have permission to do that, you may request the second reviewer to merge it for you.

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: messeb

.github/ISSUE_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Short summary ...
3+
4+
### Expected behaviour
5+
6+
...
7+
8+
### Actual behaviour
9+
10+
...
11+
12+
### Steps to reproduce the behaviour
13+
14+
-
15+
-
16+
-
17+
18+
### Which Docker version is used?
19+
20+
x.y.z
21+
22+
### Which host operation system is used?
23+
- [ ] Linux
24+
- [ ] Windows
25+
- [ ] macOS

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
Short summary ...
3+
4+
### Type of change
5+
6+
- [ ] bug fix
7+
- [ ] new feature
8+
- [ ] code style / documentation
9+
10+
### What does this implement/fix? Explain your changes.
11+
12+
...
13+

.github/SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send an email to security [at] mobiledevops [dot] net.

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on: [push]
2+
3+
jobs:
4+
main:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
matrix:
8+
os: [macos-latest]
9+
xcode-select-version: ["14.2", "14.1", "13.2.1"]
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Xcode Select Version
13+
uses: ./
14+
with:
15+
xcode-select-version: ${{ matrix.xcode-select-version }}
16+
- run: xcodebuild -version

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
# Xcode Select Version GitHub Action
22

33
This action sets the Xcode version to use for subsequent steps in a workflow.
4+
It supports only the installed Xcode versions on the GitHub-hosted runners.
5+
6+
## Xcode versions
7+
8+
The installed Xcode versions are listed in the [macOS 12 hosted runner page](https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode). Currently supported Xcode versions are:
9+
10+
| Version | Build | Path |
11+
| -------------- | -------- | ------------------------------ |
12+
| 14.2 (default) | 14C18 | /Applications/Xcode_14.2.app |
13+
| 14.1 | 14B47b | /Applications/Xcode_14.1.app |
14+
| 14.0.1 | 14A400 | /Applications/Xcode_14.0.1.app |
15+
| 13.4.1 | 13F100 | /Applications/Xcode_13.4.1.app |
16+
| 13.3.1 | 13E500a | /Applications/Xcode_13.3.1.app |
17+
| 13.2.1 | 13C100 | /Applications/Xcode_13.2.1.app |
18+
| 13.1 | 13A1030d | /Applications/Xcode_13.1.app |
19+
20+
21+
## Usage
22+
23+
```yaml
24+
on: [push]
25+
26+
jobs:
27+
main:
28+
runs-on: macos-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
- name: Xcode Select Version
32+
uses: mobiledevops/xcode-select-version-action@v1
33+
with:
34+
xcode-select-version: 14.2
35+
- run: xcodebuild -version
36+
```

action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Xcode Select Version"
2+
author: Sebastian Messingfeld
3+
description: "Selects an installed Xcode version on the runner"
4+
branding:
5+
icon: 'check-circle'
6+
color: 'orange'
7+
inputs:
8+
xcode-select-version:
9+
description: "Switch Xcode to the given version"
10+
required: true
11+
runs:
12+
using: 'node16'
13+
main: 'main.js'

0 commit comments

Comments
 (0)