Skip to content

Commit 63f358c

Browse files
author
Oleg Samarin
committed
The first attempt
0 parents  commit 63f358c

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on: [push]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-24
7+
steps:
8+
- uses: actions/checkout@v4.1.1
9+
10+
- name: Install Dependencies
11+
run: ${{github.workspace}}/build-scripts/for-linux/prepare-ubuntu.bash
12+
13+
- name: Build
14+
working-directory: ${{github.workspace}}
15+
run: ${{github.workspace}}/build-scripts/for-linux/build-on-ubuntu.bash
16+
17+
- name: Upload result
18+
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
19+
with:
20+
path: |
21+
${{github.workspace}}/build/ubuntu/*.deb
22+
upload-release-files: ${{ needs.calc_ver.outputs.release_flag }}
23+
release-upload-url: ${{ needs.calc_ver.outputs.release_upload_url }}
24+
if-no-files-found: error
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
28+
# release:
29+
# needs: [calc_ver, build]
30+
# if: ${{ needs.calc_ver.outputs.release_flag == 'ON' }}
31+
# runs-on: ubuntu-latest
32+
# steps:
33+
#
34+
# - uses: eregon/publish-release@v1
35+
# env:
36+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
# with:
38+
# release_id: ${{ needs.calc_ver.outputs.release_id }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
mkdir -p build/ubuntu
6+
pushd build/ubuntu
7+
8+
cp -av /usr/src/gcc-mingw-w64-src/* ./
9+
rm -rf gcc-mingw-w64-*
10+
dpkg-source -x gcc-mingw-w64*.dsc
11+
12+
cd gcc-mingw-w64-*
13+
debuild -us -uc
14+
15+
popd
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
sudo sed -i 's/Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
6+
sudo apt-get update
7+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y devscripts build-essential
8+
sudo apt-get build-dep -y gcc-mingw-w64
9+
10+
sudo mkdir -p /usr/src/gcc-mingw-w64-src
11+
pushd /usr/src/gcc-mingw-w64-src
12+
sudo apt-get source --download-only gcc-mingw-w64
13+
popd

0 commit comments

Comments
 (0)