Remove superfluous dependency on 'gir2swift' executable. #37
This file contains hidden or 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
name: Ubuntu 20.04 | |
# Dependencies of this package | |
env: | |
MACOS_BREW: ${{ 'glib glib-networking gobject-introspection pkg-config jq' }} | |
UBUNTU_APT: ${{ 'libglib2.0-dev glib-networking gobject-introspection libgirepository1.0-dev libxml2-dev jq' }} | |
on: | |
push: | |
branches: | |
- development | |
- main | |
pull_request: | |
branches: | |
- development | |
- main | |
jobs: | |
# Ubuntu 20.04 tasks | |
build-ubuntu-20_04-swift-latest: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: YOCKOW/Action-setup-swift@v1 | |
with: | |
swift-version: '5.6.1' | |
- name: Print Swift version to confirm | |
run: swift --version | |
- name: Fetch dependencies for general repository | |
run: sudo apt-get install $UBUNTU_APT | |
- name: Checkout SwiftGIO | |
uses: actions/checkout@v2 | |
with: | |
path: SwiftGIO | |
- name: Build SwiftGIO | |
run: | | |
cd SwiftGIO | |
swift build | |
cd .. | |
- name: Test SwiftGIO | |
run: | | |
cd SwiftGIO | |
swift test | |
cd .. | |
- name: Remove unneeded files and archive artifacts | |
run: | | |
cd SwiftGIO | |
swift package clean | |
rm -rf .build/repositories | |
cd .. | |
- name: 'Upload Artefact' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build-artefact-20.04-5.3 | |
path: | | |
SwiftGIO/Sources/ | |
retention-days: 1 |