generated from tfslabs/gnu-windows-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.24 KB
/
core.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: GNU Windows extension extractor for GitHub Actions
on:
push:
branches:
- 1.4.1-1
permissions:
contents: write
pull-requests: write
jobs:
download-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Zstandard for Extraction
run: sudo apt install -y xz-utils zstd tar
- name: Obtain source code from https://repo.msys2.org/mingw/sources/
run: |
wget https://repo.msys2.org/mingw/sources/mingw-w64-dlfcn-1.4.1-1.src.tar.zst
- name: Extract Source Code into Root Directory
run: |
tar --strip-components=1 -xf mingw-w64-dlfcn-1.4.1-1.src.tar.zst
tar --strip-components=1 -xf mingw-w64-dlfcn-1.4.1-1.src.tar
- name: Commit Changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
rm mingw-w64-dlfcn-1.4.1-1.src.tar.zst
rm mingw-w64-dlfcn-1.4.1-1.src.tar
rm .gitignore || true
rm -rf .github/workflows/*.yml || true
git add .
git commit -m "GNU Windows extension extractor for GitHub Actions"
git push