Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
sourcegit/.github/workflows/build.yml at master · ennerperez/sourcegit · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ennerperez
sourcegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
sourcegit
/
.github
/
workflows
/
build.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
81 lines (81 loc) · 2.95 KB
master
Breadcrumbs
sourcegit
/
.github
/
workflows
/
build.yml
Copy path
Top
File metadata and controls
Code
Blame
81 lines (81 loc) · 2.95 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name
:
Build
on
:
workflow_call
:
jobs
:
build
:
strategy
:
matrix
:
include
:
-
name
:
Windows x64
os
:
windows-2022
runtime
:
win-x64
-
name
:
Windows ARM64
os
:
windows-2022
runtime
:
win-arm64
-
name
:
macOS (Intel)
os
:
macos-15-intel
runtime
:
osx-x64
-
name
:
macOS (Apple Silicon)
os
:
macos-latest
runtime
:
osx-arm64
-
name
:
Linux
os
:
ubuntu-latest
runtime
:
linux-x64
container
:
ubuntu:20.04
-
name
:
Linux (arm64)
os
:
ubuntu-latest
runtime
:
linux-arm64
container
:
ubuntu:20.04
name
:
Build ${{ matrix.name }}
runs-on
:
${{ matrix.os }}
container
:
${{ matrix.container || '' }}
steps
:
-
name
:
Install common CLI tools
if
:
startsWith(matrix.runtime, 'linux-')
run
:
|
export DEBIAN_FRONTEND=noninteractive
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
apt-get update
apt-get install -y sudo
sudo apt-get install -y curl wget git unzip zip libicu66 tzdata clang
-
name
:
Checkout sources
uses
:
actions/checkout@v6
with
:
submodules
:
true
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v5
with
:
dotnet-version
:
10.0.x
-
name
:
Configure arm64 packages
if
:
matrix.runtime == 'linux-arm64'
run
:
|
sudo dpkg --add-architecture arm64
echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted' \
| sudo tee /etc/apt/sources.list.d/arm64.list
sudo sed -i -e 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo sed -i -e 's/^deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
-
name
:
Install cross-compiling dependencies
if
:
matrix.runtime == 'linux-arm64'
run
:
|
sudo apt-get update
sudo apt-get install -y llvm gcc-aarch64-linux-gnu
-
name
:
Build
run
:
dotnet build -c Release
-
name
:
Publish
run
:
dotnet publish src/SourceGit.csproj -c Release -o publish -r ${{ matrix.runtime }}
-
name
:
Rename executable file
if
:
startsWith(matrix.runtime, 'linux-')
run
:
mv publish/SourceGit publish/sourcegit
-
name
:
Tar artifact
if
:
startsWith(matrix.runtime, 'linux-') || startsWith(matrix.runtime, 'osx-')
run
:
|
tar -cvf "sourcegit.${{ matrix.runtime }}.tar" -C publish .
rm -r publish/*
mv "sourcegit.${{ matrix.runtime }}.tar" publish
-
name
:
Upload artifact
uses
:
actions/upload-artifact@v7
with
:
name
:
sourcegit.${{ matrix.runtime }}
path
:
publish/*
You can’t perform that action at this time.