forked from felixonmars/archriscv-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (26 loc) · 840 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
container: archlinux/archlinux:latest
steps:
- name: Install dependencies
run: pacman -Syu --noconfirm devtools patch binutils sudo expac
- name: Fix git unsafe repository
run: git config --global --add safe.directory /__w/archriscv-packages/archriscv-packages
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Add remote
run: |
git remote add upstream https://github.com/felixonmars/archriscv-packages.git
git fetch upstream master
- name: Test patch
run: bash test.sh
- name: Upload patch.rej
uses: actions/upload-artifact@v3
if: failure()
with:
name: patch.rej
path: '**/*.rej'
if-no-files-found: ignore