GitXplorerGitXplorer
M

swift-windows-action

public
21 stars
1 forks
1 issues

Commits

List of commits on branch main.
Verified
f41ce23ea2a8e05966823f3e9476231eb450e78b

Update README.md

MMaxDesiatov committed 2 years ago
Unverified
fa3a01d06aa8131b919c16b66d4b76e6f1939d6d

Document inputs and example usage in `README.md`

MMaxDesiatov committed 3 years ago
Unverified
a70c49df97c2382d0175353204dba1772e3855d1

Fix `action.yml` properties

MMaxDesiatov committed 3 years ago
Verified
52decbabab109c18105117cf3bda97e8dd0818d9

Remove `actions/checkout` step from `action.yml`

MMaxDesiatov committed 3 years ago
Verified
30a89878b25e1e8b456d7f420dbd206be27ac96d

Create action.yml

MMaxDesiatov committed 3 years ago
Verified
5c950303e91188bdde962f3afe0ff6411c1b0f68

Initial commit

MMaxDesiatov committed 3 years ago

README

The README file for this repository.

WARNING: this action is deprecated, please use gha-setup-swift instead.

swift-windows-action

GitHub Action for building your code with Swift on Windows

Inputs

shell-action

Optional The shell command to run on your project. Default is swift test.

swift-version

Optional The version of Swift to install. Default is "5.4.2". Warning You should always quote this argument, since YAML is not type-safe. This argument expects a string, and a simple 5.4 without double or single quotes around the value will be interpreted as a floating point value, which may lead to unexpected results and bugs.

Example usage

name: Build and test with Swift on Windows

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  swift_for_windows:
    runs-on: windows-2019

    steps:
      - uses: actions/checkout@v2
      - uses: MaxDesiatov/swift-windows-action@v1

To build your project without testing, pass an explicit shell-action input with value swift build:

jobs:
  swift_for_windows:
    runs-on: windows-2019

    steps:
      - uses: actions/checkout@v2
      - uses: MaxDesiatov/swift-windows-action@v1
        with:
          shell-action: swift build