diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 00000000000..6a1f859c299 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,23 @@ +name: Build +on: [push] +jobs: + build: + runs-on: debian-12 + steps: + - name: Install dependencies + run: apt-get update && apt-get install -y python3 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 100 + - name: Build + run: ./x.py build --stage=1 + - name: Remove symlinks + run: | + rm build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust + rm build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/rustc-src/rust + - name: Upload compiler + uses: forgejo/upload-artifact@v4 + with: + name: compiler.zip + path: build/x86_64-unknown-linux-gnu/stage1