Skip to content

Try debugging apt cache in edge-build.yml #13

Try debugging apt cache in edge-build.yml

Try debugging apt cache in edge-build.yml #13

Workflow file for this run

name: Edge Build
concurrency: build-edge
on:
workflow_dispatch:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
name: Edge Build
runs-on: ubuntu-latest
container: rust:bullseye
continue-on-error: false
outputs:
date: ${{ steps.step1.outputs.date }}
clock: ${{ steps.step1.outputs.clock }}
tag: ${{ steps.step1.outputs.tag }}
ref: ${{ steps.step1.outputs.ref }}
version: ${{ steps.step1.outputs.version }}
steps:
- name: Configure Git
shell: bash
run: |
git config --global fetch.parallel 0
git config --global submodule.fetchJobs 0
- name: Git Clone
uses: actions/checkout@v5
with:
ref: develop
submodules: recursive
- name: Environment Setup
id: step1
shell: bash
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "clock=$(date +'%H:%M:%S')" >> $GITHUB_OUTPUT
echo "tag=$(date +'%Yd%j')" >> $GITHUB_OUTPUT
echo "ref=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
git config --global --add safe.directory /__w/Carbon/Carbon
- name: MinGW Install
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
with:
packages: mingw-w64
version: 1.0
debug: true
- name: MinGW Confirmation
shell: bash
run: |
which x86_64-w64-mingw32-dlltool || echo "dlltool not found"
x86_64-w64-mingw32-dlltool --version
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.406
- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 9.0.203
- name: Carbon.Native Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu,x86_64-pc-windows-gnu
components: rust-std
- name: Carbon.Native Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: Carbon.Core/Carbon.Native
- name: Carbon.Native Build (Linux)
uses: ClementTsang/cargo-action@v0.0.3
with:
command: build
args: -r --target x86_64-unknown-linux-gnu
directory: Carbon.Core/Carbon.Native
- name: Carbon.Native Build (Windows)
uses: ClementTsang/cargo-action@v0.0.3
with:
command: build
args: -r --target x86_64-pc-windows-gnu
directory: Carbon.Core/Carbon.Native
- name: Carbon Bootstrap
shell: bash
run: |
dotnet run --project Carbon.Core/Carbon.Tools/Carbon.Runner Tools/Build/runners/bootstrap.cs
dotnet run --project Carbon.Core/Carbon.Tools/Carbon.Runner Tools/Build/runners/update.cs
- name: Carbon Build
shell: bash
run: |
export VERSION=${{ steps.step1.outputs.version }}
dotnet run --project Carbon.Core/Carbon.Tools/Carbon.Runner Tools/Build/runners/build.cs Debug EDGE edge_build
dotnet run --project Carbon.Core/Carbon.Tools/Carbon.Runner Tools/Build/runners/build.cs DebugUnix EDGE edge_build
dotnet run --project Carbon.Core/Carbon.Tools/Carbon.Runner Tools/Build/runners/build.cs Minimal EDGE edge_build
dotnet run --project Carbon.Core/Carbon.Tools/Carbon.Runner Tools/Build/runners/build.cs MinimalUnix EDGE edge_build
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: |
Release/Carbon.Linux.Debug.tar.gz
Release/Carbon.Linux.Debug.info
Release/Carbon.Linux.Minimal.tar.gz
Release/Carbon.Linux.Minimal.info
Release/Carbon.Windows.Debug.zip
Release/Carbon.Windows.Debug.info
Release/Carbon.Windows.Minimal.zip
Release/Carbon.Windows.Minimal.info
release-on-commit:
name: Edge Release
needs: ["build"]
runs-on: ubuntu-latest
steps:
- name: 🗑️ Delete existing release tag
uses: dev-drprasad/delete-tag-and-release@92d94d77429cb0436597047a92369526a5824f50
with:
delete_release: true
tag_name: edge_build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 💤 Sleep for 5 seconds
run: sleep 5s
shell: bash
- name: ⬇️ Download artifacts
uses: actions/download-artifact@v4
with:
path: Release
- name: Display structure of downloaded files
run: ls -R
working-directory: Release
- name: 🏷️ Update release tag
uses: softprops/action-gh-release@a92196038060e0c673cf3ba5b98710dd716731df
with:
draft: false
prerelease: true
tag_name: edge_build
name: "Edge Build — v${{ needs.build.outputs.version }}"
body: |
This is a development build of Carbon based on the latest commit pushed to the repository.
This build is best used to test the very last changes that can be found in the commit history list, since the [preview] and [stable] builds.
This build is targeted at developers.
The general public is advised to use one of the [stable] or [preview] builds.
### How to install
1. Download the `Carbon.[Windows|Linux].Debug` archive from the attachments below.
2. Unzip the archive to the root of your Rust Dedicated Server.
3. Restart the server and enjoy.
[stable]: https://github.com/CarbonCommunity/Carbon.Core/releases/latest
[preview]: https://github.com/CarbonCommunity/Carbon.Core/releases/preview_build
files: |
Release/build/Carbon.Linux.Debug.info
Release/build/Carbon.Linux.Debug.tar.gz
Release/build/Carbon.Linux.Minimal.info
Release/build/Carbon.Linux.Minimal.tar.gz
Release/build/Carbon.Windows.Debug.info
Release/build/Carbon.Windows.Debug.zip
Release/build/Carbon.Windows.Minimal.info
Release/build/Carbon.Windows.Minimal.zip