Make the cat command work. #227
This file contains 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 18.04 | |
# Dependencies of this package | |
env: | |
UBUNTU_APT: ${{ 'libxml2-dev gobject-introspection libgirepository1.0-dev' }} | |
on: | |
push: | |
branches: | |
- main | |
- development | |
pull_request: | |
branches: | |
- main | |
- development | |
jobs: | |
# Ubuntu 18.04 tasks | |
build-ubuntu-18_04-swift-latest: | |
runs-on: ubuntu-18.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 gir2swift | |
uses: actions/checkout@v2 | |
with: | |
path: gir2swift | |
- name: Build current gir2swift | |
run: | | |
cd gir2swift | |
./build.sh | |
echo "GIR2SWIFT_PATH=${PWD}/.build/release/gir2swift" >> $GITHUB_ENV | |
cd .. | |
- name: Test gir2swift | |
run: | | |
cd gir2swift | |
./test.sh | |
cd .. | |
- name: Remove unneeded files and archive artefacts | |
run: | | |
cd gir2swift | |
swift package clean | |
rm -rf .build/repositories | |
cd .. |