[antlir][oss] github actions ci #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: facebook/install-dotslash@latest | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- name: BTRFS-ify antlir2-out | |
run: | | |
mkdir antlir2-out | |
truncate -S 100G ${{ runner.temp }}/image.btrfs | |
mkfs.btrfs ${{ runner.temp }}/image.btrfs | |
mount ${{ runner.temp }}/image.btrfs antlir2-out | |
- name: Build layer with RPMs | |
run: | | |
./buck2 build antlir//antlir/antlir2/features/rpm/tests:simple--layer |