1- name : Build main toolchain
1+ name : Build Cygwin toolchain
22
33on :
44 push :
1919 description : ' Mingw branch to build'
2020 required : false
2121 default : ' woarm64'
22+ cygwin_branch :
23+ description : ' Cygwin branch to build'
24+ required : false
25+ default : ' native-cygwin'
26+
2227env :
2328 BINUTILS_BRANCH : ${{ inputs.binutils_branch || 'woarm64' }}
2429 GCC_BRANCH : ${{ inputs.gcc_branch || 'woarm64' }}
2530 MINGW_BRANCH : ${{ inputs.mingw_branch || 'woarm64' }}
31+ CYGWIN_BRANCH : ${{ inputs.cygwin_branch || 'native-cygwin' }}
32+
33+ ARCH : aarch64
34+ PLATFORM : pc-cygwin
2635
2736 BUILD_PATH : ${{ github.workspace }}/build
2837 CCACHE_DIR_PATH : ${{ github.workspace }}/ccache
2938 TOOLCHAIN_PATH : ${{ github.workspace }}/cross
3039
31- CCACHE : 1
40+ CCACHE : 0
3241 DELETE_BUILD : 1
3342
3443jobs :
3544 build-toolchain :
36- runs-on : ubuntu-24.04-arm
45+ runs-on : windows-11-arm
46+
47+ defaults :
48+ run :
49+ shell : bash --noprofile --norc -eo pipefail -c "PATH=/usr/bin:$(/usr/bin/cygpath $SYSTEMROOT)/system32:$PATH $(s=$(/usr/bin/cygpath '{0}') && /usr/bin/sed -i 's/\r$//' $s && echo $s)"
3750
3851 steps :
52+ - name : Install Cygwin
53+ uses : cygwin/cygwin-install-action@master
54+ with :
55+ platform : x86_64
56+ packages : >-
57+ wget
58+
59+ - name : Setup Git
60+ run : |
61+ git config --global core.autocrlf input
62+
3963 - name : Checkout repository
4064 uses : actions/checkout@v4
4165
4872 uses : actions/cache/restore@v4
4973 with :
5074 path : ${{ env.CCACHE_DIR_PATH }}
51- key : main -gcc-ccache-${{ steps.get-cache-key.outputs.timestamp }}
52- restore-keys : main -gcc-ccache-
75+ key : cygwin -gcc-ccache-${{ steps.get-cache-key.outputs.timestamp }}
76+ restore-keys : cygwin -gcc-ccache-
5377
5478 - name : Run Build
5579 run : |
@@ -64,19 +88,19 @@ jobs:
6488 uses : actions/cache/save@v4
6589 with :
6690 path : ${{ env.CCACHE_DIR_PATH }}
67- key : main -gcc-ccache-${{ steps.get-cache-key.outputs.timestamp }}
91+ key : cygwin -gcc-ccache-${{ steps.get-cache-key.outputs.timestamp }}
6892
6993 - name : Upload build folder
7094 if : failure()
7195 uses : actions/upload-artifact@v4
7296 with :
73- name : main- aarch64-w64-mingw32 -build
97+ name : aarch64-pc-cygwin -build
7498 retention-days : 1
7599 path : ${{ env.BUILD_PATH }}
76100
77101 - name : Upload artifact
78102 uses : actions/upload-artifact@v4
79103 with :
80- name : main- aarch64-w64-mingw32 -toolchain
104+ name : aarch64-pc-cygwin -toolchain
81105 path : ${{ env.TOOLCHAIN_PATH }}
82106 retention-days : 1
0 commit comments