diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml new file mode 100644 index 000000000..e65ff752b --- /dev/null +++ b/.github/workflows/actions.yaml @@ -0,0 +1,70 @@ +name: Darling CI + +on: [push] + +jobs: + build-deb: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Checkout submodules + shell: bash + run: | + git submodule update --init --recursive --depth=1 + + - name: Post-checkout script + run: | + ./tools/post-checkout.sh + + - name: Install dependencies + run: | + sudo apt-get update && sudo apt-get install devscripts equivs debhelper + sudo mk-build-deps -i -r -t "apt-get --no-install-recommends -y" debian/control + + # see https://github.com/actions/virtual-environments/issues/2606#issuecomment-772683150 + - name: Free up space + run: | + sudo rm -rf /usr/share/dotnet + + - name: Build DEBs + run: | + ./tools/debian/make-deb + + - name: Move DEBs + run: | + mkdir dist && mv ../*.deb dist + + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: 'debs' + path: dist/ + + build-dsc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Checkout submodules + shell: bash + run: | + git submodule update --init --recursive --depth=1 + + - name: Install dependencies + run: | + sudo apt-get update && sudo apt-get install devscripts equivs debhelper + + - name: Build DSCs + run: | + ./tools/debian/make-deb --dsc + + - name: Move DSCs + run: | + mkdir source && mv ../*~$(lsb_release -cs).* source + + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: 'source' + path: source/ diff --git a/src/external/swift b/src/external/swift index 9d723239b..a713ab13e 160000 --- a/src/external/swift +++ b/src/external/swift @@ -1 +1 @@ -Subproject commit 9d723239b3e50149ee3f3c84cbfe6a4ca08c5722 +Subproject commit a713ab13ebffe88923a2066ad8c9133cb4fe8636 diff --git a/tools/post-checkout.sh b/tools/post-checkout.sh new file mode 100755 index 000000000..0119d92e4 --- /dev/null +++ b/tools/post-checkout.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" + +"$SCRIPT_DIR/../src/external/swift/post-checkout.sh"