Files
MSYS2-packages/.github/workflows/main.yml
Christoph Reiter 3d08c1b49c CI: stop running builds on the master branch
No one looks at them really, and they just consume resources.
We still run them on forks, PRs and feature branches.
2021-04-24 17:59:03 +02:00

55 lines
1.3 KiB
YAML

name: main
on:
push:
pull_request:
jobs:
build:
if: ${{ github.repository != 'msys2/MSYS2-packages' || github.event_name != 'push' || github.ref != 'refs/heads/master'}}
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
path: temp
fetch-depth: 0
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
install: git base-devel msys2-devel
update: true
- name: Add staging repo
shell: msys2 {0}
run: |
sed -i '1s|^|[staging]\nServer = https://repo.msys2.org/staging/\nSigLevel = Never\n|' /etc/pacman.conf
- name: Update using staging
run: |
msys2 -c 'pacman --noconfirm -Suuy'
msys2 -c 'pacman --noconfirm -Suu'
- name: Move Checkout
run: |
Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse
- name: CI-Build
shell: msys2 {0}
run: |
cd /C/_
./.ci/ci-build.sh
- name: "Upload binaries"
uses: actions/upload-artifact@v2
with:
name: msys2-packages
path: C:/_/artifacts/*.pkg.tar.*
- name: "Upload sources"
uses: actions/upload-artifact@v2
with:
name: sources
path: C:/_/artifacts/*.src.tar.*