Skip to content

add artifact

add artifact #14

Workflow file for this run

name: Cosmocc (x86_64)
on:
pull_request:
push:
release:
types: [published]
jobs:
build:
strategy:
matrix:
os: [macos-12]
arch: [x86_64]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cosmocc-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Prepare local xmake
run: cp -rf . ../xmake-source
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: local#../xmake-source
- name: Installation
run: |
brew install dmd
brew install dub
- name: Build
run: |
cd core
xmake f -p linux --cosmocc=y -y -cvD
xmake -v
cd ..
- name: Tests
run: |
source scripts/srcenv.profile
xmake --version
xmake lua -v -D tests/run.lua
xrepo --version
- name: Artifact
run: |
brew install gnu-tar
cd core
xmake pack -y --autobuild=n --basename=xmake -f zip -o ../artifacts xmake
cd ..
- uses: actions/upload-artifact@v2
with:
name: xmake-latest.zip
path: artifacts/xmake.zip